Help us shape the future of Go! Take the 2026 Go Developer Survey

v1beta2

package
v0.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2022 License: EPL-1.0 Imports: 11 Imported by: 0

Documentation

Overview

Package v1beta2 contains API Schema definitions for the openliberty.io v1beta1 API group +kubebuilder:object:generate=true +groupName=apps.openliberty.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "apps.openliberty.io", Version: "v1beta2"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type GithubLogin

type GithubLogin struct {
	// Specifies the host name of your enterprise GitHub.
	Hostname string `json:"hostname,omitempty"`
}

Represents configuration for social login using GitHub.

func (*GithubLogin) DeepCopy

func (in *GithubLogin) DeepCopy() *GithubLogin

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GithubLogin.

func (*GithubLogin) DeepCopyInto

func (in *GithubLogin) DeepCopyInto(out *GithubLogin)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OAuth2Client

type OAuth2Client struct {
	// Specifies the unique ID for the provider. The default value is oauth2.
	ID string `json:"id,omitempty"`

	// Specifies a token endpoint URL for the OAuth 2.0 provider. Required field.
	TokenEndpoint string `json:"tokenEndpoint"`

	// Specifies an authorization endpoint URL for the OAuth 2.0 provider. Required field.
	AuthorizationEndpoint string `json:"authorizationEndpoint"`

	// Specifies the name of the claim. Use its value as the user group membership
	GroupNameAttribute string `json:"groupNameAttribute,omitempty"`

	// Specifies the name of the claim. Use its value as the authenticated user principal.
	UserNameAttribute string `json:"userNameAttribute,omitempty"`

	// The name of the social login configuration for display.
	DisplayName string `json:"displayName,omitempty"`

	// Specifies the name of the claim. Use its value as the subject realm.
	RealmNameAttribute string `json:"realmNameAttribute,omitempty"`

	// Specifies the realm name for this social media.
	RealmName string `json:"realmName,omitempty"`

	// Specifies one or more scopes to request.
	Scope string `json:"scope,omitempty"`

	// Specifies the required authentication method.
	TokenEndpointAuthMethod string `json:"tokenEndpointAuthMethod,omitempty"`

	// Name of the header to use when an OAuth access token is forwarded.
	AccessTokenHeaderName string `json:"accessTokenHeaderName,omitempty"`

	// Determines whether the access token that is provided in the request is used for authentication.
	AccessTokenRequired *bool `json:"accessTokenRequired,omitempty"`

	// Determines whether to support access token authentication if an access token is provided in the request.
	AccessTokenSupported *bool `json:"accessTokenSupported,omitempty"`

	// Indicates which specification to use for the user API.
	UserApiType string `json:"userApiType,omitempty"`

	// The URL for retrieving the user information.
	UserApi string `json:"userApi,omitempty"`
}

Represents configuration for an OAuth2 client.

func (*OAuth2Client) DeepCopy

func (in *OAuth2Client) DeepCopy() *OAuth2Client

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OAuth2Client.

func (*OAuth2Client) DeepCopyInto

func (in *OAuth2Client) DeepCopyInto(out *OAuth2Client)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OidcClient

type OidcClient struct {
	// The unique ID for the provider. Default value is oidc.
	ID string `json:"id,omitempty"`

	// Specifies a discovery endpoint URL for the OpenID Connect provider. Required field.
	DiscoveryEndpoint string `json:"discoveryEndpoint"`

	// Specifies the name of the claim. Use its value as the user group membership.
	GroupNameAttribute string `json:"groupNameAttribute,omitempty"`

	// Specifies the name of the claim. Use its value as the authenticated user principal.
	UserNameAttribute string `json:"userNameAttribute,omitempty"`

	// The name of the social login configuration for display.
	DisplayName string `json:"displayName,omitempty"`

	// Specifies whether the UserInfo endpoint is contacted.
	UserInfoEndpointEnabled *bool `json:"userInfoEndpointEnabled,omitempty"`

	// Specifies the name of the claim. Use its value as the subject realm.
	RealmNameAttribute string `json:"realmNameAttribute,omitempty"`

	// Specifies one or more scopes to request.
	Scope string `json:"scope,omitempty"`

	// Specifies the required authentication method.
	TokenEndpointAuthMethod string `json:"tokenEndpointAuthMethod,omitempty"`

	// Specifies whether to enable host name verification when the client contacts the provider.
	HostNameVerificationEnabled *bool `json:"hostNameVerificationEnabled,omitempty"`
}

Represents configuration for an OpenID Connect (OIDC) client.

func (*OidcClient) DeepCopy

func (in *OidcClient) DeepCopy() *OidcClient

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OidcClient.

func (*OidcClient) DeepCopyInto

func (in *OidcClient) DeepCopyInto(out *OidcClient)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OpenLibertyApplication

type OpenLibertyApplication struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   OpenLibertyApplicationSpec   `json:"spec,omitempty"`
	Status OpenLibertyApplicationStatus `json:"status,omitempty"`
}

Represents the deployment of an Open Liberty application

func (*OpenLibertyApplication) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyApplication.

func (*OpenLibertyApplication) DeepCopyInto

func (in *OpenLibertyApplication) DeepCopyInto(out *OpenLibertyApplication)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyApplication) DeepCopyObject

func (in *OpenLibertyApplication) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*OpenLibertyApplication) GetAffinity

GetAffinity returns deployment's node and pod affinity settings

func (*OpenLibertyApplication) GetAnnotations

func (cr *OpenLibertyApplication) GetAnnotations() map[string]string

GetAnnotations returns set of annotations to be added to all resources

func (*OpenLibertyApplication) GetApplicationImage

func (cr *OpenLibertyApplication) GetApplicationImage() string

GetApplicationImage returns application image

func (*OpenLibertyApplication) GetApplicationName

func (cr *OpenLibertyApplication) GetApplicationName() string

GetApplicationName returns Application name

func (*OpenLibertyApplication) GetApplicationVersion

func (cr *OpenLibertyApplication) GetApplicationVersion() string

GetApplicationVersion returns application version

func (*OpenLibertyApplication) GetAutoscaling

GetAutoscaling returns autoscaling settings

func (*OpenLibertyApplication) GetCreateKnativeService

func (cr *OpenLibertyApplication) GetCreateKnativeService() *bool

GetCreateKnativeService returns flag that toggles Knative service

func (*OpenLibertyApplication) GetDeployment

GetDeployment returns deployment settings

func (*OpenLibertyApplication) GetEnv

func (cr *OpenLibertyApplication) GetEnv() []corev1.EnvVar

GetEnv returns slice of environment variables

func (*OpenLibertyApplication) GetEnvFrom

func (cr *OpenLibertyApplication) GetEnvFrom() []corev1.EnvFromSource

GetEnvFrom returns slice of environment variables from source

func (*OpenLibertyApplication) GetExpose

func (cr *OpenLibertyApplication) GetExpose() *bool

GetExpose returns expose flag

func (*OpenLibertyApplication) GetGroupName

func (cr *OpenLibertyApplication) GetGroupName() string

GetGroupName returns group name to be used in labels and annotation

func (*OpenLibertyApplication) GetInitContainers

func (cr *OpenLibertyApplication) GetInitContainers() []corev1.Container

GetInitContainers returns list of init containers

func (*OpenLibertyApplication) GetLabels

func (cr *OpenLibertyApplication) GetLabels() map[string]string

GetLabels returns set of labels to be added to all resources

func (*OpenLibertyApplication) GetMonitoring

GetMonitoring returns monitoring settings

func (*OpenLibertyApplication) GetProbes

func (*OpenLibertyApplication) GetPullPolicy

func (cr *OpenLibertyApplication) GetPullPolicy() *corev1.PullPolicy

GetPullPolicy returns image pull policy

func (*OpenLibertyApplication) GetPullSecret

func (cr *OpenLibertyApplication) GetPullSecret() *string

GetPullSecret returns secret name for docker registry credentials

func (*OpenLibertyApplication) GetReplicas

func (cr *OpenLibertyApplication) GetReplicas() *int32

GetReplicas returns number of replicas

func (*OpenLibertyApplication) GetResourceConstraints

func (cr *OpenLibertyApplication) GetResourceConstraints() *corev1.ResourceRequirements

GetResourceConstraints returns resource constraints

func (*OpenLibertyApplication) GetRoute

GetRoute returns route

func (*OpenLibertyApplication) GetService

GetService returns service settings

func (*OpenLibertyApplication) GetServiceAccountName

func (cr *OpenLibertyApplication) GetServiceAccountName() *string

GetServiceAccountName returns service account name

func (*OpenLibertyApplication) GetServiceability

GetServiceability returns serviceability

func (*OpenLibertyApplication) GetSidecarContainers

func (cr *OpenLibertyApplication) GetSidecarContainers() []corev1.Container

GetSidecarContainers returns list of sidecar containers

func (*OpenLibertyApplication) GetStatefulSet

GetStatefulSet returns statefulSet settings

func (*OpenLibertyApplication) GetStatus

GetStatus returns OpenLibertyApplication status

func (*OpenLibertyApplication) GetVolumeMounts

func (cr *OpenLibertyApplication) GetVolumeMounts() []corev1.VolumeMount

GetVolumeMounts returns volume mounts slice

func (*OpenLibertyApplication) GetVolumes

func (cr *OpenLibertyApplication) GetVolumes() []corev1.Volume

GetVolumes returns volumes slice

func (*OpenLibertyApplication) Initialize

func (cr *OpenLibertyApplication) Initialize()

Initialize sets default values

type OpenLibertyApplicationAffinity

type OpenLibertyApplicationAffinity struct {
	// Controls which nodes the pod are scheduled to run on, based on labels on the node.
	// +operator-sdk:csv:customresourcedefinitions:order=37,type=spec,displayName="Node Affinity",xDescriptors="urn:alm:descriptor:com.tectonic.ui:nodeAffinity"
	NodeAffinity *corev1.NodeAffinity `json:"nodeAffinity,omitempty"`

	// Controls the nodes the pod are scheduled to run on, based on labels on the pods that are already running on the node.
	// +operator-sdk:csv:customresourcedefinitions:order=38,type=spec,displayName="Pod Affinity",xDescriptors="urn:alm:descriptor:com.tectonic.ui:podAffinity"
	PodAffinity *corev1.PodAffinity `json:"podAffinity,omitempty"`

	// Enables the ability to prevent running a pod on the same node as another pod.
	// +operator-sdk:csv:customresourcedefinitions:order=39,type=spec,displayName="Pod Anti Affinity",xDescriptors="urn:alm:descriptor:com.tectonic.ui:podAntiAffinity"
	PodAntiAffinity *corev1.PodAntiAffinity `json:"podAntiAffinity,omitempty"`

	// A YAML object that contains a set of required labels and their values.
	// +operator-sdk:csv:customresourcedefinitions:order=40,type=spec,displayName="Node Affinity Labels",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	NodeAffinityLabels map[string]string `json:"nodeAffinityLabels,omitempty"`

	// An array of architectures to be considered for deployment. Their position in the array indicates preference.
	// +listType=set
	Architecture []string `json:"architecture,omitempty"`
}

Configure pods to run on particular Nodes.

func (*OpenLibertyApplicationAffinity) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyApplicationAffinity.

func (*OpenLibertyApplicationAffinity) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyApplicationAffinity) GetArchitecture

func (a *OpenLibertyApplicationAffinity) GetArchitecture() []string

GetArchitecture returns list of architecture names

func (*OpenLibertyApplicationAffinity) GetNodeAffinity

func (a *OpenLibertyApplicationAffinity) GetNodeAffinity() *corev1.NodeAffinity

GetNodeAffinity returns node affinity

func (*OpenLibertyApplicationAffinity) GetNodeAffinityLabels

func (a *OpenLibertyApplicationAffinity) GetNodeAffinityLabels() map[string]string

GetNodeAffinityLabels returns list of architecture names

func (*OpenLibertyApplicationAffinity) GetPodAffinity

func (a *OpenLibertyApplicationAffinity) GetPodAffinity() *corev1.PodAffinity

GetPodAffinity returns pod affinity

func (*OpenLibertyApplicationAffinity) GetPodAntiAffinity

func (a *OpenLibertyApplicationAffinity) GetPodAntiAffinity() *corev1.PodAntiAffinity

GetPodAntiAffinity returns pod anti-affinity

type OpenLibertyApplicationAutoScaling

type OpenLibertyApplicationAutoScaling struct {
	// Required field for autoscaling. Upper limit for the number of pods that can be set by the autoscaler. Parameter .spec.resources.requests.cpu must also be specified.
	// +kubebuilder:validation:Minimum=1
	// +operator-sdk:csv:customresourcedefinitions:order=1,type=spec,displayName="Max Replicas",xDescriptors="urn:alm:descriptor:com.tectonic.ui:number"
	MaxReplicas int32 `json:"maxReplicas,omitempty"`

	// Lower limit for the number of pods that can be set by the autoscaler.
	// +operator-sdk:csv:customresourcedefinitions:order=2,type=spec,displayName="Min Replicas",xDescriptors="urn:alm:descriptor:com.tectonic.ui:number"
	MinReplicas *int32 `json:"minReplicas,omitempty"`

	// Target average CPU utilization, represented as a percentage of requested CPU, over all the pods.
	// +operator-sdk:csv:customresourcedefinitions:order=3,type=spec,displayName="Target CPU Utilization Percentage",xDescriptors="urn:alm:descriptor:com.tectonic.ui:number"
	TargetCPUUtilizationPercentage *int32 `json:"targetCPUUtilizationPercentage,omitempty"`
}

Configures the desired resource consumption of pods.

func (*OpenLibertyApplicationAutoScaling) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyApplicationAutoScaling.

func (*OpenLibertyApplicationAutoScaling) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyApplicationAutoScaling) GetMaxReplicas

func (a *OpenLibertyApplicationAutoScaling) GetMaxReplicas() int32

GetMaxReplicas returns maximum replicas

func (*OpenLibertyApplicationAutoScaling) GetMinReplicas

func (a *OpenLibertyApplicationAutoScaling) GetMinReplicas() *int32

GetMinReplicas returns minimum replicas

func (*OpenLibertyApplicationAutoScaling) GetTargetCPUUtilizationPercentage

func (a *OpenLibertyApplicationAutoScaling) GetTargetCPUUtilizationPercentage() *int32

GetTargetCPUUtilizationPercentage returns target cpu usage

type OpenLibertyApplicationDeployment

type OpenLibertyApplicationDeployment struct {
	// Specifies the strategy to replace old deployment pods with new pods.
	// +operator-sdk:csv:customresourcedefinitions:order=21,type=spec,displayName="Deployment Update Strategy",xDescriptors="urn:alm:descriptor:com.tectonic.ui:updateStrategy"
	UpdateStrategy *appsv1.DeploymentStrategy `json:"updateStrategy,omitempty"`

	// Annotations to be added only to the Deployment and resources owned by the Deployment
	Annotations map[string]string `json:"annotations,omitempty"`
}

Defines the desired state and cycle of applications.

func (*OpenLibertyApplicationDeployment) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyApplicationDeployment.

func (*OpenLibertyApplicationDeployment) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyApplicationDeployment) GetAnnotations

func (rcd *OpenLibertyApplicationDeployment) GetAnnotations() map[string]string

GetAnnotations returns annotations to be added only to the Deployment and its child resources

func (*OpenLibertyApplicationDeployment) GetDeploymentUpdateStrategy

func (cr *OpenLibertyApplicationDeployment) GetDeploymentUpdateStrategy() *appsv1.DeploymentStrategy

GetDeploymentStrategy returns deployment strategy struct

type OpenLibertyApplicationList

type OpenLibertyApplicationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []OpenLibertyApplication `json:"items"`
}

OpenLibertyApplicationList contains a list of OpenLibertyApplication

func (*OpenLibertyApplicationList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyApplicationList.

func (*OpenLibertyApplicationList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyApplicationList) DeepCopyObject

func (in *OpenLibertyApplicationList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type OpenLibertyApplicationMonitoring

type OpenLibertyApplicationMonitoring struct {
	// Labels to set on ServiceMonitor.
	// +operator-sdk:csv:customresourcedefinitions:order=34,type=spec,displayName="Monitoring Labels",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	Labels map[string]string `json:"labels,omitempty"`

	// A YAML snippet representing an array of Endpoint component from ServiceMonitor.
	// +listType=atomic
	// +operator-sdk:csv:customresourcedefinitions:order=35,type=spec,displayName="Monitoring Endpoints",xDescriptors="urn:alm:descriptor:com.tectonic.ui:endpointList"
	Endpoints []prometheusv1.Endpoint `json:"endpoints,omitempty"`
}

Specifies parameters for Service Monitor.

func (*OpenLibertyApplicationMonitoring) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyApplicationMonitoring.

func (*OpenLibertyApplicationMonitoring) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyApplicationMonitoring) GetEndpoints

GetEndpoints returns endpoints to be added to ServiceMonitor

func (*OpenLibertyApplicationMonitoring) GetLabels

func (m *OpenLibertyApplicationMonitoring) GetLabels() map[string]string

GetLabels returns labels to be added on ServiceMonitor

type OpenLibertyApplicationProbes

type OpenLibertyApplicationProbes struct {
	// Periodic probe of container liveness. Container will be restarted if the probe fails.
	// +operator-sdk:csv:customresourcedefinitions:order=49,type=spec,displayName="Liveness Probe"
	Liveness *corev1.Probe `json:"liveness,omitempty"`

	// Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails.
	// +operator-sdk:csv:customresourcedefinitions:order=50,type=spec,displayName="Readiness Probe"
	Readiness *corev1.Probe `json:"readiness,omitempty"`

	// Probe to determine successful initialization. If specified, other probes are not executed until this completes successfully.
	// +operator-sdk:csv:customresourcedefinitions:order=51,type=spec,displayName="Startup Probe"
	Startup *corev1.Probe `json:"startup,omitempty"`
}

Define health checks on application container to determine whether it is alive or ready to receive traffic

func (*OpenLibertyApplicationProbes) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyApplicationProbes.

func (*OpenLibertyApplicationProbes) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyApplicationProbes) GetLivenessProbe

func (p *OpenLibertyApplicationProbes) GetLivenessProbe() *corev1.Probe

GetLivenessProbe returns liveness probe

func (*OpenLibertyApplicationProbes) GetReadinessProbe

func (p *OpenLibertyApplicationProbes) GetReadinessProbe() *corev1.Probe

GetReadinessProbe returns readiness probe

func (*OpenLibertyApplicationProbes) GetStartupProbe

func (p *OpenLibertyApplicationProbes) GetStartupProbe() *corev1.Probe

GetStartupProbe returns startup probe

type OpenLibertyApplicationRoute

type OpenLibertyApplicationRoute struct {

	// Annotations to be added to the Route.
	// +operator-sdk:csv:customresourcedefinitions:order=42,type=spec,displayName="Route Annotations",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	Annotations map[string]string `json:"annotations,omitempty"`

	// Hostname to be used for the Route.
	// +operator-sdk:csv:customresourcedefinitions:order=43,type=spec,displayName="Route Host",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	Host string `json:"host,omitempty"`

	// Path to be used for Route.
	// +operator-sdk:csv:customresourcedefinitions:order=44,type=spec,displayName="Route Path",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	Path string `json:"path,omitempty"`

	// Path type to be used for Ingress.
	PathType networkingv1.PathType `json:"pathType,omitempty"`

	// A name of a secret that already contains TLS key, certificate and CA to be used in the route. Also can contain destination CA certificate.
	// +operator-sdk:csv:customresourcedefinitions:order=45,type=spec,displayName="Certificate Secret Reference",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	CertificateSecretRef *string `json:"certificateSecretRef,omitempty"`

	// TLS termination policy. Can be one of edge, reencrypt and passthrough.
	// +operator-sdk:csv:customresourcedefinitions:order=46,type=spec,displayName="Termination",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	Termination *routev1.TLSTerminationType `json:"termination,omitempty"`

	// HTTP traffic policy with TLS enabled. Can be one of Allow, Redirect and None.
	// +operator-sdk:csv:customresourcedefinitions:order=47,type=spec,displayName="Insecure Edge Termination Policy",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	InsecureEdgeTerminationPolicy *routev1.InsecureEdgeTerminationPolicyType `json:"insecureEdgeTerminationPolicy,omitempty"`
}

Configures the ingress resource.

func (*OpenLibertyApplicationRoute) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyApplicationRoute.

func (*OpenLibertyApplicationRoute) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyApplicationRoute) GetAnnotations

func (r *OpenLibertyApplicationRoute) GetAnnotations() map[string]string

GetAnnotations returns route annotations

func (*OpenLibertyApplicationRoute) GetCertificateSecretRef

func (r *OpenLibertyApplicationRoute) GetCertificateSecretRef() *string

GetCertificateSecretRef returns a secret reference with a certificate

func (*OpenLibertyApplicationRoute) GetHost

func (r *OpenLibertyApplicationRoute) GetHost() string

GetHost returns hostname to be used by the route

func (*OpenLibertyApplicationRoute) GetInsecureEdgeTerminationPolicy

func (r *OpenLibertyApplicationRoute) GetInsecureEdgeTerminationPolicy() *routev1.InsecureEdgeTerminationPolicyType

GetInsecureEdgeTerminationPolicy returns terminatation of the route's TLS

func (*OpenLibertyApplicationRoute) GetPath

func (r *OpenLibertyApplicationRoute) GetPath() string

GetPath returns path to use for the route

func (*OpenLibertyApplicationRoute) GetPathType

GetPathType returns pathType to use for the route

func (*OpenLibertyApplicationRoute) GetTermination

GetTermination returns terminatation of the route's TLS

type OpenLibertyApplicationSSO

type OpenLibertyApplicationSSO struct {
	// +listType=atomic
	OIDC []OidcClient `json:"oidc,omitempty"`

	// +listType=atomic
	Oauth2 []OAuth2Client `json:"oauth2,omitempty"`

	Github *GithubLogin `json:"github,omitempty"`

	// Specifies a callback protocol, host and port number.
	RedirectToRPHostAndPort string `json:"redirectToRPHostAndPort,omitempty"`

	// Specifies whether to map a user identifier to a registry user. This parameter applies to all providers.
	MapToUserRegistry *bool `json:"mapToUserRegistry,omitempty"`
}

Specifies the configuration for Single sign-on (SSO) providers to authenticate with.

func (*OpenLibertyApplicationSSO) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyApplicationSSO.

func (*OpenLibertyApplicationSSO) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OpenLibertyApplicationService

type OpenLibertyApplicationService struct {
	// The port exposed by the container.
	// +kubebuilder:validation:Maximum=65535
	// +kubebuilder:validation:Minimum=1
	// +operator-sdk:csv:customresourcedefinitions:order=9,type=spec,displayName="Service Port",xDescriptors="urn:alm:descriptor:com.tectonic.ui:number"
	Port int32 `json:"port,omitempty"`

	// +operator-sdk:csv:customresourcedefinitions:order=10,type=spec,displayName="Service Type",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	Type *corev1.ServiceType `json:"type,omitempty"`

	// Node proxies this port into your service.
	// +kubebuilder:validation:Maximum=65535
	// +kubebuilder:validation:Minimum=0
	// +operator-sdk:csv:customresourcedefinitions:order=11,type=spec,displayName="Node Port",xDescriptors="urn:alm:descriptor:com.tectonic.ui:number"
	NodePort *int32 `json:"nodePort,omitempty"`

	// The name for the port exposed by the container.
	// +operator-sdk:csv:customresourcedefinitions:order=12,type=spec,displayName="Port Name",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	PortName string `json:"portName,omitempty"`

	// Annotations to be added to the service.
	// +operator-sdk:csv:customresourcedefinitions:order=13,type=spec,displayName="Service Annotations",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	Annotations map[string]string `json:"annotations,omitempty"`

	// The port that the operator assigns to containers inside pods. Defaults to the value of .spec.service.port.
	// +kubebuilder:validation:Maximum=65535
	// +kubebuilder:validation:Minimum=1
	// +operator-sdk:csv:customresourcedefinitions:order=14,type=spec,displayName="Target Port",xDescriptors="urn:alm:descriptor:com.tectonic.ui:number"
	TargetPort *int32 `json:"targetPort,omitempty"`

	// A name of a secret that already contains TLS key, certificate and CA to be mounted in the pod.
	// +operator-sdk:csv:customresourcedefinitions:order=15,type=spec,displayName="Certificate Secret Reference",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	CertificateSecretRef *string `json:"certificateSecretRef,omitempty"`

	// An array consisting of service ports.
	// +operator-sdk:csv:customresourcedefinitions:order=16,type=spec
	Ports []corev1.ServicePort `json:"ports,omitempty"`

	// Expose the application as a bindable service. Defaults to false.
	// +operator-sdk:csv:customresourcedefinitions:order=17,type=spec,displayName="Bindable",xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
	Bindable *bool `json:"bindable,omitempty"`
}

Configures parameters for the network service of pods.

func (*OpenLibertyApplicationService) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyApplicationService.

func (*OpenLibertyApplicationService) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyApplicationService) GetAnnotations

func (s *OpenLibertyApplicationService) GetAnnotations() map[string]string

GetAnnotations returns a set of annotations to be added to the service

func (*OpenLibertyApplicationService) GetBindable

func (s *OpenLibertyApplicationService) GetBindable() *bool

GetBindable returns whether the application should be exposable as a service

func (*OpenLibertyApplicationService) GetCertificateSecretRef

func (s *OpenLibertyApplicationService) GetCertificateSecretRef() *string

GetCertificateSecretRef returns a secret reference with a certificate

func (*OpenLibertyApplicationService) GetNodePort

func (s *OpenLibertyApplicationService) GetNodePort() *int32

GetNodePort returns service nodePort

func (*OpenLibertyApplicationService) GetPort

func (s *OpenLibertyApplicationService) GetPort() int32

GetPort returns service port

func (*OpenLibertyApplicationService) GetPortName

func (s *OpenLibertyApplicationService) GetPortName() string

GetPortName returns name of service port

func (*OpenLibertyApplicationService) GetPorts

GetPorts returns a list of service ports

func (*OpenLibertyApplicationService) GetTargetPort

func (s *OpenLibertyApplicationService) GetTargetPort() *int32

GetTargetPort returns the internal target port for containers

func (*OpenLibertyApplicationService) GetType

GetType returns service type

type OpenLibertyApplicationServiceability

type OpenLibertyApplicationServiceability struct {
	// A convenient field to request the size of the persisted storage to use for serviceability.
	// +kubebuilder:validation:Pattern=^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$
	Size string `json:"size,omitempty"`

	// The name of the PersistentVolumeClaim resource you created to be used for serviceability.
	// +kubebuilder:validation:Pattern=.+
	VolumeClaimName string `json:"volumeClaimName,omitempty"`

	// A convenient field to request the StorageClassName of the persisted storage to use for serviceability.
	// +kubebuilder:validation:Pattern=.+
	StorageClassName string `json:"storageClassName,omitempty"`
}

Specifies serviceability-related operations, such as gathering server memory dumps and server traces.

func (*OpenLibertyApplicationServiceability) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyApplicationServiceability.

func (*OpenLibertyApplicationServiceability) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyApplicationServiceability) GetSize

GetSize returns pesistent volume size for Serviceability

func (*OpenLibertyApplicationServiceability) GetVolumeClaimName

func (s *OpenLibertyApplicationServiceability) GetVolumeClaimName() string

GetVolumeClaimName returns the name of custom PersistentVolumeClaim (PVC) for Serviceability. Must be in the same namespace as the OpenLibertyApplication.

type OpenLibertyApplicationSpec

type OpenLibertyApplicationSpec struct {

	// Application image to deploy.
	// +operator-sdk:csv:customresourcedefinitions:order=1,type=spec,displayName="Application Image",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	ApplicationImage string `json:"applicationImage"`

	// Name of the application. Defaults to the name of this custom resource.
	// +operator-sdk:csv:customresourcedefinitions:order=2,type=spec,displayName="Application Name",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	ApplicationName string `json:"applicationName,omitempty"`

	// Version of the application.
	// +operator-sdk:csv:customresourcedefinitions:order=3,type=spec,displayName="Application Version",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	ApplicationVersion string `json:"applicationVersion,omitempty"`

	// Policy for pulling container images. Defaults to IfNotPresent.
	// +operator-sdk:csv:customresourcedefinitions:order=4,type=spec,displayName="Pull Policy",xDescriptors="urn:alm:descriptor:com.tectonic.ui:imagePullPolicy"
	PullPolicy *corev1.PullPolicy `json:"pullPolicy,omitempty"`

	// Name of the Secret to use to pull images from the specified repository. It is not required if the cluster is configured with a global image pull secret.
	// +operator-sdk:csv:customresourcedefinitions:order=5,type=spec,displayName="Pull Secret",xDescriptors="urn:alm:descriptor:io.kubernetes:Secret"
	PullSecret *string `json:"pullSecret,omitempty"`

	// Name of the service account to use for deploying the application. A service account is automatically created if it's not specified.
	// +operator-sdk:csv:customresourcedefinitions:order=6,type=spec,displayName="Service Account Name",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	ServiceAccountName *string `json:"serviceAccountName,omitempty"`

	// Create Knative resources and use Knative serving.
	// +operator-sdk:csv:customresourcedefinitions:order=7,type=spec,displayName="Create Knative Service",xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
	CreateKnativeService *bool `json:"createKnativeService,omitempty"`

	// Expose the application externally via a Route, a Knative Route or an Ingress resource.
	// +operator-sdk:csv:customresourcedefinitions:order=8,type=spec,displayName="Expose",xDescriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch"
	Expose *bool `json:"expose,omitempty"`

	// Number of pods to create. Not applicable when .spec.autoscaling or .spec.createKnativeService is specified.
	// +operator-sdk:csv:customresourcedefinitions:order=9,type=spec,displayName="Replicas",xDescriptors="urn:alm:descriptor:com.tectonic.ui:podCount"
	Replicas *int32 `json:"replicas,omitempty"`

	// +operator-sdk:csv:customresourcedefinitions:order=10,type=spec,displayName="Auto Scaling"
	Autoscaling *OpenLibertyApplicationAutoScaling `json:"autoscaling,omitempty"`

	// Limits the amount of required resources.
	// +operator-sdk:csv:customresourcedefinitions:order=11,type=spec,displayName="Resource Requirements",xDescriptors="urn:alm:descriptor:com.tectonic.ui:resourceRequirements"
	Resources *corev1.ResourceRequirements `json:"resources,omitempty"`

	// +operator-sdk:csv:customresourcedefinitions:order=12,type=spec,displayName="Probes"
	Probes *OpenLibertyApplicationProbes `json:"probes,omitempty"`

	// +operator-sdk:csv:customresourcedefinitions:order=13,type=spec,displayName="Deployment"
	Deployment *OpenLibertyApplicationDeployment `json:"deployment,omitempty"`

	// +operator-sdk:csv:customresourcedefinitions:order=14,type=spec,displayName="StatefulSet"
	StatefulSet *OpenLibertyApplicationStatefulSet `json:"statefulSet,omitempty"`

	// +operator-sdk:csv:customresourcedefinitions:order=15,type=spec,displayName="Service"
	Service *OpenLibertyApplicationService `json:"service,omitempty"`

	// +operator-sdk:csv:customresourcedefinitions:order=16,type=spec,displayName="Route"
	Route *OpenLibertyApplicationRoute `json:"route,omitempty"`

	// +operator-sdk:csv:customresourcedefinitions:order=17,type=spec,displayName="Serviceability"
	Serviceability *OpenLibertyApplicationServiceability `json:"serviceability,omitempty"`

	// +operator-sdk:csv:customresourcedefinitions:order=18,type=spec,displayName="Single sign-on"
	SSO *OpenLibertyApplicationSSO `json:"sso,omitempty"`

	// +operator-sdk:csv:customresourcedefinitions:order=19,type=spec,displayName="Monitoring"
	Monitoring *OpenLibertyApplicationMonitoring `json:"monitoring,omitempty"`

	// An array of environment variables for the application container.
	// +listType=map
	// +listMapKey=name
	// +operator-sdk:csv:customresourcedefinitions:order=20,type=spec,displayName="Environment Variables"
	Env []corev1.EnvVar `json:"env,omitempty"`

	// List of sources to populate environment variables in the application container.
	// +listType=atomic
	// +operator-sdk:csv:customresourcedefinitions:order=21,type=spec,displayName="Environment Variables from Sources"
	EnvFrom []corev1.EnvFromSource `json:"envFrom,omitempty"`

	// Represents a volume with data that is accessible to the application container.
	// +listType=map
	// +listMapKey=name
	// +operator-sdk:csv:customresourcedefinitions:order=22,type=spec,displayName="Volumes"
	Volumes []corev1.Volume `json:"volumes,omitempty"`

	// Represents where to mount the volumes into the application container.
	// +listType=atomic
	// +operator-sdk:csv:customresourcedefinitions:order=23,type=spec,displayName="Volume Mounts"
	VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"`

	// List of containers to run before other containers in a pod.
	// +listType=map
	// +listMapKey=name
	// +operator-sdk:csv:customresourcedefinitions:order=24,type=spec,displayName="Init Containers"
	InitContainers []corev1.Container `json:"initContainers,omitempty"`

	// List of sidecar containers. These are additional containers to be added to the pods.
	// +listType=map
	// +listMapKey=name
	// +operator-sdk:csv:customresourcedefinitions:order=25,type=spec,displayName="Sidecar Containers"
	SidecarContainers []corev1.Container `json:"sidecarContainers,omitempty"`

	// +operator-sdk:csv:customresourcedefinitions:order=26,type=spec,displayName="Affinity"
	Affinity *OpenLibertyApplicationAffinity `json:"affinity,omitempty"`
}

Defines the desired state of OpenLibertyApplication.

func (*OpenLibertyApplicationSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyApplicationSpec.

func (*OpenLibertyApplicationSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OpenLibertyApplicationStatefulSet

type OpenLibertyApplicationStatefulSet struct {
	// Specifies the strategy to replace old StatefulSet pods with new pods.
	// +operator-sdk:csv:customresourcedefinitions:order=23,type=spec,displayName="StatefulSet Update Strategy",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	UpdateStrategy *appsv1.StatefulSetUpdateStrategy `json:"updateStrategy,omitempty"`

	// +operator-sdk:csv:customresourcedefinitions:order=24,type=spec,displayName="Storage"
	Storage *OpenLibertyApplicationStorage `json:"storage,omitempty"`

	// Annotations to be added only to the StatefulSet and resources owned by the StatefulSet.
	Annotations map[string]string `json:"annotations,omitempty"`
}

Defines the desired state and cycle of stateful applications.

func (*OpenLibertyApplicationStatefulSet) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyApplicationStatefulSet.

func (*OpenLibertyApplicationStatefulSet) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyApplicationStatefulSet) GetAnnotations

func (rcss *OpenLibertyApplicationStatefulSet) GetAnnotations() map[string]string

GetAnnotations returns annotations to be added only to the StatefulSet and its child resources

func (*OpenLibertyApplicationStatefulSet) GetStatefulSetUpdateStrategy

func (cr *OpenLibertyApplicationStatefulSet) GetStatefulSetUpdateStrategy() *appsv1.StatefulSetUpdateStrategy

GetStatefulSetUpdateStrategy returns statefulSet strategy struct

func (*OpenLibertyApplicationStatefulSet) GetStorage

GetStorage returns storage settings

type OpenLibertyApplicationStatus

type OpenLibertyApplicationStatus struct {
	// +listType=atomic
	// +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Status Conditions",xDescriptors="urn:alm:descriptor:io.kubernetes.conditions"
	Conditions     []StatusCondition `json:"conditions,omitempty"`
	RouteAvailable *bool             `json:"routeAvailable,omitempty"`
	ImageReference string            `json:"imageReference,omitempty"`

	// +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Service Binding"
	Binding *corev1.LocalObjectReference `json:"binding,omitempty"`
}

Defines the observed state of OpenLibertyApplication.

func (*OpenLibertyApplicationStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyApplicationStatus.

func (*OpenLibertyApplicationStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyApplicationStatus) GetBinding

GetBinding returns BindingStatus representing binding status

func (*OpenLibertyApplicationStatus) GetCondition

GetCondition ...

func (*OpenLibertyApplicationStatus) GetConditions

GetConditions returns slice of conditions

func (*OpenLibertyApplicationStatus) GetImageReference

func (s *OpenLibertyApplicationStatus) GetImageReference() string

GetImageReference returns Docker image reference to be deployed by the CR

func (*OpenLibertyApplicationStatus) NewCondition

NewCondition returns new condition

func (*OpenLibertyApplicationStatus) SetBinding

SetBinding sets BindingStatus representing binding status

func (*OpenLibertyApplicationStatus) SetCondition

SetCondition ...

func (*OpenLibertyApplicationStatus) SetImageReference

func (s *OpenLibertyApplicationStatus) SetImageReference(imageReference string)

SetImageReference sets Docker image reference on the status portion of the CR

type OpenLibertyApplicationStorage

type OpenLibertyApplicationStorage struct {
	// A convenient field to set the size of the persisted storage.
	// +kubebuilder:validation:Pattern=^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$
	// +operator-sdk:csv:customresourcedefinitions:order=25,type=spec,displayName="Storage Size",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	Size string `json:"size,omitempty"`

	// The directory inside the container where this persisted storage will be bound to.
	// +operator-sdk:csv:customresourcedefinitions:order=26,type=spec,displayName="Storage Mount Path",xDescriptors="urn:alm:descriptor:com.tectonic.ui:text"
	MountPath string `json:"mountPath,omitempty"`

	// A YAML object that represents a volumeClaimTemplate component of a StatefulSet.
	// +operator-sdk:csv:customresourcedefinitions:order=27,type=spec,displayName="Storage Volume Claim Template",xDescriptors="urn:alm:descriptor:com.tectonic.ui:PersistentVolumeClaim"
	VolumeClaimTemplate *corev1.PersistentVolumeClaim `json:"volumeClaimTemplate,omitempty"`
}

Defines settings of persisted storage for StatefulSets.

func (*OpenLibertyApplicationStorage) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyApplicationStorage.

func (*OpenLibertyApplicationStorage) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyApplicationStorage) GetMountPath

func (s *OpenLibertyApplicationStorage) GetMountPath() string

GetMountPath returns mount path for persistent volume

func (*OpenLibertyApplicationStorage) GetSize

GetSize returns pesistent volume size

func (*OpenLibertyApplicationStorage) GetVolumeClaimTemplate

func (s *OpenLibertyApplicationStorage) GetVolumeClaimTemplate() *corev1.PersistentVolumeClaim

GetVolumeClaimTemplate returns a template representing requested persistent volume

type OpenLibertyDump

type OpenLibertyDump struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   OpenLibertyDumpSpec   `json:"spec,omitempty"`
	Status OpenLibertyDumpStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:path=openlibertydumps,scope=Namespaced,shortName=oldump;oldumps +kubebuilder:printcolumn:name="Started",type="string",JSONPath=".status.conditions[?(@.type=='Started')].status",priority=0,description="Indicates if dump operation has started" +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Started')].reason",priority=1,description="Reason for dump operation failing to start" +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Started')].message",priority=1,description="Message for dump operation failing to start" +kubebuilder:printcolumn:name="Completed",type="string",JSONPath=".status.conditions[?(@.type=='Completed')].status",priority=0,description="Indicates if dump operation has completed" +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Completed')].reason",priority=1,description="Reason for dump operation failing to complete" +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Completed')].message",priority=1,description="Message for dump operation failing to complete" +kubebuilder:printcolumn:name="Dump file",type="string",JSONPath=".status.dumpFile",priority=0,description="Indicates filename of the server dump" +operator-sdk:csv:customresourcedefinitions:displayName="OpenLibertyDump" Day-2 operation for generating server dumps

func (*OpenLibertyDump) DeepCopy

func (in *OpenLibertyDump) DeepCopy() *OpenLibertyDump

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyDump.

func (*OpenLibertyDump) DeepCopyInto

func (in *OpenLibertyDump) DeepCopyInto(out *OpenLibertyDump)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyDump) DeepCopyObject

func (in *OpenLibertyDump) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type OpenLibertyDumpInclude

type OpenLibertyDumpInclude string

Defines the possible values for dump types +kubebuilder:validation:Enum=thread;heap;system

const (
	//OpenLibertyDumpIncludeHeap heap dump
	OpenLibertyDumpIncludeHeap OpenLibertyDumpInclude = "heap"
	//OpenLibertyDumpIncludeThread thread dump
	OpenLibertyDumpIncludeThread OpenLibertyDumpInclude = "thread"
	//OpenLibertyDumpIncludeSystem system (core) dump
	OpenLibertyDumpIncludeSystem OpenLibertyDumpInclude = "system"
)

type OpenLibertyDumpList

type OpenLibertyDumpList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []OpenLibertyDump `json:"items"`
}

+kubebuilder:object:root=true OpenLibertyDumpList contains a list of OpenLibertyDump

func (*OpenLibertyDumpList) DeepCopy

func (in *OpenLibertyDumpList) DeepCopy() *OpenLibertyDumpList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyDumpList.

func (*OpenLibertyDumpList) DeepCopyInto

func (in *OpenLibertyDumpList) DeepCopyInto(out *OpenLibertyDumpList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyDumpList) DeepCopyObject

func (in *OpenLibertyDumpList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type OpenLibertyDumpSpec

type OpenLibertyDumpSpec struct {
	// The name of the Pod, which must be in the same namespace as the OpenLibertyDump CR.
	PodName string `json:"podName"`
	// Optional. List of memory dump types to request: thread, heap, system.
	// +listType=set
	Include []OpenLibertyDumpInclude `json:"include,omitempty"`
}

OpenLibertyDumpSpec defines the desired state of OpenLibertyDump

func (*OpenLibertyDumpSpec) DeepCopy

func (in *OpenLibertyDumpSpec) DeepCopy() *OpenLibertyDumpSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyDumpSpec.

func (*OpenLibertyDumpSpec) DeepCopyInto

func (in *OpenLibertyDumpSpec) DeepCopyInto(out *OpenLibertyDumpSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OpenLibertyDumpStatus

type OpenLibertyDumpStatus struct {
	// +listType=atomic
	Conditions []OperationStatusCondition `json:"conditions,omitempty"`
	DumpFile   string                     `json:"dumpFile,omitempty"`
}

Defines the observed state of OpenLibertyDump

func (*OpenLibertyDumpStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyDumpStatus.

func (*OpenLibertyDumpStatus) DeepCopyInto

func (in *OpenLibertyDumpStatus) DeepCopyInto(out *OpenLibertyDumpStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OpenLibertyTrace

type OpenLibertyTrace struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   OpenLibertyTraceSpec   `json:"spec,omitempty"`
	Status OpenLibertyTraceStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:path=openlibertytraces,scope=Namespaced,shortName=oltrace;oltraces +kubebuilder:printcolumn:name="PodName",type="string",JSONPath=".status.operatedResource.resourceName",priority=0,description="Name of the last operated pod" +kubebuilder:printcolumn:name="Tracing",type="string",JSONPath=".status.conditions[?(@.type=='Enabled')].status",priority=0,description="Status of the trace condition" +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Enabled')].reason",priority=1,description="Reason for the failure of trace condition" +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Enabled')].message",priority=1,description="Failure message from trace condition" +operator-sdk:csv:customresourcedefinitions:displayName="OpenLibertyTrace" Day-2 operation for gathering server traces

func (*OpenLibertyTrace) DeepCopy

func (in *OpenLibertyTrace) DeepCopy() *OpenLibertyTrace

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyTrace.

func (*OpenLibertyTrace) DeepCopyInto

func (in *OpenLibertyTrace) DeepCopyInto(out *OpenLibertyTrace)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyTrace) DeepCopyObject

func (in *OpenLibertyTrace) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*OpenLibertyTrace) GetStatus

func (cr *OpenLibertyTrace) GetStatus() *OpenLibertyTraceStatus

GetStatus return condition's status

func (*OpenLibertyTrace) Initialize

func (cr *OpenLibertyTrace) Initialize()

type OpenLibertyTraceList

type OpenLibertyTraceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []OpenLibertyTrace `json:"items"`
}

+kubebuilder:object:root=true OpenLibertyTraceList contains a list of OpenLibertyTrace

func (*OpenLibertyTraceList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyTraceList.

func (*OpenLibertyTraceList) DeepCopyInto

func (in *OpenLibertyTraceList) DeepCopyInto(out *OpenLibertyTraceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyTraceList) DeepCopyObject

func (in *OpenLibertyTraceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type OpenLibertyTraceSpec

type OpenLibertyTraceSpec struct {
	// The name of the Pod, which must be in the same namespace as the OpenLibertyTrace CR.
	PodName string `json:"podName"`

	// The trace string to be used to selectively enable trace. The default is *=info.
	TraceSpecification string `json:"traceSpecification"`

	// The maximum size (in MB) that a log file can reach before it is rolled. To disable this attribute, set the value to 0.
	MaxFileSize *int32 `json:"maxFileSize,omitempty"`

	// If an enforced maximum file size exists, this setting is used to determine how many of each of the logs files are kept.
	MaxFiles *int32 `json:"maxFiles,omitempty"`

	// Set to true to stop tracing.
	Disable *bool `json:"disable,omitempty"`
}

Defines the desired state of OpenLibertyTrace

func (*OpenLibertyTraceSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyTraceSpec.

func (*OpenLibertyTraceSpec) DeepCopyInto

func (in *OpenLibertyTraceSpec) DeepCopyInto(out *OpenLibertyTraceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OpenLibertyTraceStatus

type OpenLibertyTraceStatus struct {
	// +listType=atomic
	Conditions       []OperationStatusCondition `json:"conditions,omitempty"`
	OperatedResource OperatedResource           `json:"operatedResource,omitempty"`
}

Defines the observed state of OpenLibertyTrace operation

func (*OpenLibertyTraceStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenLibertyTraceStatus.

func (*OpenLibertyTraceStatus) DeepCopyInto

func (in *OpenLibertyTraceStatus) DeepCopyInto(out *OpenLibertyTraceStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OpenLibertyTraceStatus) GetCondition

GetCondition ...

func (*OpenLibertyTraceStatus) GetConditions

func (s *OpenLibertyTraceStatus) GetConditions() []OperationStatusCondition

GetConditions returns slice of conditions

func (*OpenLibertyTraceStatus) GetOperatedResource

func (s *OpenLibertyTraceStatus) GetOperatedResource() *OperatedResource

GetOperatedResource ...

func (*OpenLibertyTraceStatus) NewCondition

NewCondition returns new condition

func (*OpenLibertyTraceStatus) SetCondition

SetCondition ...

func (*OpenLibertyTraceStatus) SetOperatedResource

func (s *OpenLibertyTraceStatus) SetOperatedResource(or OperatedResource)

SetOperatedResource ...

type OperatedResource

type OperatedResource struct {
	ResourceType string `json:"resourceType,omitempty"`
	ResourceName string `json:"resourceName,omitempty"`
}

OperatedResource ...

func (*OperatedResource) DeepCopy

func (in *OperatedResource) DeepCopy() *OperatedResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatedResource.

func (*OperatedResource) DeepCopyInto

func (in *OperatedResource) DeepCopyInto(out *OperatedResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OperatedResource) GetOperatedResourceName

func (or *OperatedResource) GetOperatedResourceName() string

GetOperatedResourceName get the last operated resource name

func (*OperatedResource) GetOperatedResourceType

func (or *OperatedResource) GetOperatedResourceType() string

GetOperatedResourceType get the last operated resource type

func (*OperatedResource) SetOperatedResourceName

func (or *OperatedResource) SetOperatedResourceName(n string)

SetOperatedResourceName sets the last operated resource name

func (*OperatedResource) SetOperatedResourceType

func (or *OperatedResource) SetOperatedResourceType(t string)

SetOperatedResourceType sets the last operated resource type

type OperationStatusCondition

type OperationStatusCondition struct {
	LastTransitionTime *metav1.Time                 `json:"lastTransitionTime,omitempty"`
	LastUpdateTime     metav1.Time                  `json:"lastUpdateTime,omitempty"`
	Reason             string                       `json:"reason,omitempty"`
	Message            string                       `json:"message,omitempty"`
	Status             corev1.ConditionStatus       `json:"status,omitempty"`
	Type               OperationStatusConditionType `json:"type,omitempty"`
}

OperationStatusCondition ...

func GetOperationCondtion

GetOperationCondtion returns condition of specific type

func SetOperationCondtion

SetOperationCondtion set condition of specific type or appends if not present

func (*OperationStatusCondition) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperationStatusCondition.

func (*OperationStatusCondition) DeepCopyInto

func (in *OperationStatusCondition) DeepCopyInto(out *OperationStatusCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OperationStatusCondition) GetLastTransitionTime

func (c *OperationStatusCondition) GetLastTransitionTime() *metav1.Time

GetLastTransitionTime return time of last status change

func (*OperationStatusCondition) GetLastUpdateTime

func (c *OperationStatusCondition) GetLastUpdateTime() metav1.Time

GetLastUpdateTime return time of last status update

func (*OperationStatusCondition) GetMessage

func (c *OperationStatusCondition) GetMessage() string

GetMessage return condition's message

func (*OperationStatusCondition) GetReason

func (c *OperationStatusCondition) GetReason() string

GetReason return condition's message

func (*OperationStatusCondition) GetStatus

GetStatus return condition's status

func (*OperationStatusCondition) GetType

GetType returns status condition type

func (*OperationStatusCondition) SetLastTransitionTime

func (c *OperationStatusCondition) SetLastTransitionTime(t *metav1.Time)

SetLastTransitionTime sets time of last status change

func (*OperationStatusCondition) SetLastUpdateTime

func (c *OperationStatusCondition) SetLastUpdateTime(t metav1.Time)

SetLastUpdateTime sets time of last status update

func (*OperationStatusCondition) SetMessage

func (c *OperationStatusCondition) SetMessage(m string)

SetMessage sets condition's message

func (*OperationStatusCondition) SetReason

func (c *OperationStatusCondition) SetReason(r string)

SetReason sets condition's reason

func (*OperationStatusCondition) SetStatus

SetStatus sets condition's status

func (*OperationStatusCondition) SetType

SetType sets status condition type

type OperationStatusConditionType

type OperationStatusConditionType string

OperationStatusConditionType ...

const (
	// OperationStatusConditionTypeEnabled indicates whether operation is enabled
	OperationStatusConditionTypeEnabled OperationStatusConditionType = "Enabled"
	// OperationStatusConditionTypeStarted indicates whether operation has been started
	OperationStatusConditionTypeStarted OperationStatusConditionType = "Started"
	// OperationStatusConditionTypeCompleted indicates whether operation has been completed
	OperationStatusConditionTypeCompleted OperationStatusConditionType = "Completed"
)

type StatusCondition

type StatusCondition struct {
	LastTransitionTime *metav1.Time           `json:"lastTransitionTime,omitempty"`
	Reason             string                 `json:"reason,omitempty"`
	Message            string                 `json:"message,omitempty"`
	Status             corev1.ConditionStatus `json:"status,omitempty"`
	Type               StatusConditionType    `json:"type,omitempty"`
}

Defines possible status conditions.

func (*StatusCondition) DeepCopy

func (in *StatusCondition) DeepCopy() *StatusCondition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatusCondition.

func (*StatusCondition) DeepCopyInto

func (in *StatusCondition) DeepCopyInto(out *StatusCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StatusCondition) GetLastTransitionTime

func (c *StatusCondition) GetLastTransitionTime() *metav1.Time

GetLastTransitionTime return time of last status change

func (*StatusCondition) GetMessage

func (c *StatusCondition) GetMessage() string

GetMessage return condition's message

func (*StatusCondition) GetReason

func (c *StatusCondition) GetReason() string

GetReason return condition's message

func (*StatusCondition) GetStatus

func (c *StatusCondition) GetStatus() corev1.ConditionStatus

GetStatus return condition's status

func (*StatusCondition) GetType

GetType returns status condition type

func (*StatusCondition) SetLastTransitionTime

func (c *StatusCondition) SetLastTransitionTime(t *metav1.Time)

SetLastTransitionTime sets time of last status change

func (*StatusCondition) SetMessage

func (c *StatusCondition) SetMessage(m string)

SetMessage sets condition's message

func (*StatusCondition) SetReason

func (c *StatusCondition) SetReason(r string)

SetReason sets condition's reason

func (*StatusCondition) SetStatus

func (c *StatusCondition) SetStatus(s corev1.ConditionStatus)

SetStatus sets condition's status

func (*StatusCondition) SetType

SetType returns status condition type

type StatusConditionType

type StatusConditionType string

Defines the type of status condition.

const (
	// StatusConditionTypeReconciled ...
	StatusConditionTypeReconciled StatusConditionType = "Reconciled"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL