Documentation
¶
Overview ¶
+groupName=operator.openshift.io
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type BackupConditionReason
- type BackupConditionType
- type ClusterAPI
- type ClusterAPIInstallerComponent
- func (in *ClusterAPIInstallerComponent) DeepCopy() *ClusterAPIInstallerComponent
- func (in *ClusterAPIInstallerComponent) DeepCopyInto(out *ClusterAPIInstallerComponent)
- func (in ClusterAPIInstallerComponent) OpenAPIModelName() string
- func (ClusterAPIInstallerComponent) SwaggerDoc() map[string]string
- type ClusterAPIInstallerComponentImage
- func (in *ClusterAPIInstallerComponentImage) DeepCopy() *ClusterAPIInstallerComponentImage
- func (in *ClusterAPIInstallerComponentImage) DeepCopyInto(out *ClusterAPIInstallerComponentImage)
- func (in ClusterAPIInstallerComponentImage) OpenAPIModelName() string
- func (ClusterAPIInstallerComponentImage) SwaggerDoc() map[string]string
- type ClusterAPIInstallerComponentSource
- func (in *ClusterAPIInstallerComponentSource) DeepCopy() *ClusterAPIInstallerComponentSource
- func (in *ClusterAPIInstallerComponentSource) DeepCopyInto(out *ClusterAPIInstallerComponentSource)
- func (in ClusterAPIInstallerComponentSource) OpenAPIModelName() string
- func (ClusterAPIInstallerComponentSource) SwaggerDoc() map[string]string
- type ClusterAPIInstallerRevision
- type ClusterAPIInstallerRevisionManifestSubstitution
- func (in *ClusterAPIInstallerRevisionManifestSubstitution) DeepCopy() *ClusterAPIInstallerRevisionManifestSubstitution
- func (in *ClusterAPIInstallerRevisionManifestSubstitution) DeepCopyInto(out *ClusterAPIInstallerRevisionManifestSubstitution)
- func (in ClusterAPIInstallerRevisionManifestSubstitution) OpenAPIModelName() string
- func (ClusterAPIInstallerRevisionManifestSubstitution) SwaggerDoc() map[string]string
- type ClusterAPIList
- type ClusterAPISpec
- type ClusterAPIStatus
- type ClusterVersionOperator
- func (in *ClusterVersionOperator) DeepCopy() *ClusterVersionOperator
- func (in *ClusterVersionOperator) DeepCopyInto(out *ClusterVersionOperator)
- func (in *ClusterVersionOperator) DeepCopyObject() runtime.Object
- func (in ClusterVersionOperator) OpenAPIModelName() string
- func (ClusterVersionOperator) SwaggerDoc() map[string]string
- type ClusterVersionOperatorList
- func (in *ClusterVersionOperatorList) DeepCopy() *ClusterVersionOperatorList
- func (in *ClusterVersionOperatorList) DeepCopyInto(out *ClusterVersionOperatorList)
- func (in *ClusterVersionOperatorList) DeepCopyObject() runtime.Object
- func (in ClusterVersionOperatorList) OpenAPIModelName() string
- func (ClusterVersionOperatorList) SwaggerDoc() map[string]string
- type ClusterVersionOperatorSpec
- type ClusterVersionOperatorStatus
- func (in *ClusterVersionOperatorStatus) DeepCopy() *ClusterVersionOperatorStatus
- func (in *ClusterVersionOperatorStatus) DeepCopyInto(out *ClusterVersionOperatorStatus)
- func (in ClusterVersionOperatorStatus) OpenAPIModelName() string
- func (ClusterVersionOperatorStatus) SwaggerDoc() map[string]string
- type ConditionStatus
- type DelegatedAuthentication
- type DelegatedAuthorization
- type EtcdBackup
- type EtcdBackupAssetType
- type EtcdBackupFile
- type EtcdBackupList
- type EtcdBackupPolicy
- type EtcdBackupPolicyConditionReason
- type EtcdBackupPolicyConditionType
- type EtcdBackupPolicyList
- func (in *EtcdBackupPolicyList) DeepCopy() *EtcdBackupPolicyList
- func (in *EtcdBackupPolicyList) DeepCopyInto(out *EtcdBackupPolicyList)
- func (in *EtcdBackupPolicyList) DeepCopyObject() runtime.Object
- func (in EtcdBackupPolicyList) OpenAPIModelName() string
- func (EtcdBackupPolicyList) SwaggerDoc() map[string]string
- type EtcdBackupPolicyLocalDistributionType
- type EtcdBackupPolicyRetentionQuantity
- func (in *EtcdBackupPolicyRetentionQuantity) DeepCopy() *EtcdBackupPolicyRetentionQuantity
- func (in *EtcdBackupPolicyRetentionQuantity) DeepCopyInto(out *EtcdBackupPolicyRetentionQuantity)
- func (in EtcdBackupPolicyRetentionQuantity) OpenAPIModelName() string
- func (EtcdBackupPolicyRetentionQuantity) SwaggerDoc() map[string]string
- type EtcdBackupPolicyRetentionRule
- func (in *EtcdBackupPolicyRetentionRule) DeepCopy() *EtcdBackupPolicyRetentionRule
- func (in *EtcdBackupPolicyRetentionRule) DeepCopyInto(out *EtcdBackupPolicyRetentionRule)
- func (in EtcdBackupPolicyRetentionRule) OpenAPIModelName() string
- func (EtcdBackupPolicyRetentionRule) SwaggerDoc() map[string]string
- type EtcdBackupPolicyRetentionRuleType
- type EtcdBackupPolicyRetentionSize
- func (in *EtcdBackupPolicyRetentionSize) DeepCopy() *EtcdBackupPolicyRetentionSize
- func (in *EtcdBackupPolicyRetentionSize) DeepCopyInto(out *EtcdBackupPolicyRetentionSize)
- func (in EtcdBackupPolicyRetentionSize) OpenAPIModelName() string
- func (EtcdBackupPolicyRetentionSize) SwaggerDoc() map[string]string
- type EtcdBackupPolicySpec
- type EtcdBackupPolicyStatus
- type EtcdBackupPolicyStorage
- type EtcdBackupPolicyStorageLocal
- func (in *EtcdBackupPolicyStorageLocal) DeepCopy() *EtcdBackupPolicyStorageLocal
- func (in *EtcdBackupPolicyStorageLocal) DeepCopyInto(out *EtcdBackupPolicyStorageLocal)
- func (in EtcdBackupPolicyStorageLocal) OpenAPIModelName() string
- func (EtcdBackupPolicyStorageLocal) SwaggerDoc() map[string]string
- type EtcdBackupPolicyStoragePvc
- type EtcdBackupSpec
- type EtcdBackupStatus
- type EtcdBackupStorage
- type EtcdBackupStorageLocal
- type EtcdBackupStoragePvc
- type EtcdBackupStorageType
- type GatewayAPIIngressConfig
- type GatewayAPIManagementMode
- type GenerationHistory
- type GenericOperatorConfig
- func (in *GenericOperatorConfig) DeepCopy() *GenericOperatorConfig
- func (in *GenericOperatorConfig) DeepCopyInto(out *GenericOperatorConfig)
- func (in *GenericOperatorConfig) DeepCopyObject() runtime.Object
- func (in GenericOperatorConfig) OpenAPIModelName() string
- func (GenericOperatorConfig) SwaggerDoc() map[string]string
- type ImageContentSourcePolicy
- func (in *ImageContentSourcePolicy) DeepCopy() *ImageContentSourcePolicy
- func (in *ImageContentSourcePolicy) DeepCopyInto(out *ImageContentSourcePolicy)
- func (in *ImageContentSourcePolicy) DeepCopyObject() runtime.Object
- func (in ImageContentSourcePolicy) OpenAPIModelName() string
- func (ImageContentSourcePolicy) SwaggerDoc() map[string]string
- type ImageContentSourcePolicyList
- func (in *ImageContentSourcePolicyList) DeepCopy() *ImageContentSourcePolicyList
- func (in *ImageContentSourcePolicyList) DeepCopyInto(out *ImageContentSourcePolicyList)
- func (in *ImageContentSourcePolicyList) DeepCopyObject() runtime.Object
- func (in ImageContentSourcePolicyList) OpenAPIModelName() string
- func (ImageContentSourcePolicyList) SwaggerDoc() map[string]string
- type ImageContentSourcePolicySpec
- func (in *ImageContentSourcePolicySpec) DeepCopy() *ImageContentSourcePolicySpec
- func (in *ImageContentSourcePolicySpec) DeepCopyInto(out *ImageContentSourcePolicySpec)
- func (in ImageContentSourcePolicySpec) OpenAPIModelName() string
- func (ImageContentSourcePolicySpec) SwaggerDoc() map[string]string
- type ImageDigestFormat
- type Ingress
- type IngressList
- type IngressSpec
- type IngressStatus
- type InstallerComponentType
- type LoggingConfig
- type ManagementState
- type NodeStatus
- type OLM
- type OLMList
- type OLMSpec
- type OLMStatus
- type OperatorCondition
- type OperatorSpec
- type OperatorStatus
- type RepositoryDigestMirrors
- type RevisionName
- type StaticPodOperatorStatus
- type VersionAvailability
Constants ¶
const ( // DEPRECATED: Use v1.ConditionTrue instead ConditionTrue ConditionStatus = "True" // DEPRECATED: Use v1.ConditionFalse instead ConditionFalse ConditionStatus = "False" // DEPRECATED: Use v1.ConditionUnknown instead ConditionUnknown ConditionStatus = "Unknown" // these conditions match the conditions for the ClusterOperator type. // DEPRECATED: Use v1.OperatorStatusTypeAvailable instead OperatorStatusTypeAvailable = "Available" // DEPRECATED: Use v1.OperatorStatusTypeProgressing instead OperatorStatusTypeProgressing = "Progressing" // DEPRECATED: Use v1.OperatorStatusTypeDegraded instead OperatorStatusTypeFailing = "Failing" // DEPRECATED: Use v1.OperatorStatusTypeProgressing instead OperatorStatusTypeMigrating = "Migrating" // TODO this is going to be removed // DEPRECATED: Use v1.OperatorStatusTypeAvailable instead OperatorStatusTypeSyncSuccessful = "SyncSuccessful" )
Variables ¶
var ( GroupName = "operator.openshift.io" GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} // Install is a function which adds this version to a scheme Install = schemeBuilder.AddToScheme // SchemeGroupVersion generated code relies on this name // Deprecated SchemeGroupVersion = GroupVersion // AddToScheme exists solely to keep the old generators creating valid code // DEPRECATED AddToScheme = schemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource generated code relies on this being here, but it logically belongs to the group DEPRECATED
Types ¶
type BackupConditionReason ¶
type BackupConditionReason string
BackupConditionReason enumerates the Condition reasons associated with BackupConditionTypes
var ( // BackupReasonJobStarted means the backup job is currently running. BackupReasonJobStarted BackupConditionReason = "JobStarted" // BackupReasonJobCompleted means the backup job completed successfully. BackupReasonJobCompleted BackupConditionReason = "JobCompleted" // BackupReasonSetupFailed means the backup during setup, and no files were created. // Backup may have failed to schedule, failed to validate storage, or any error that occurred before the backup process began. // Additional details on the failure will be provided in the condition message. BackupReasonSetupFailed BackupConditionReason = "SetupFailed" // BackupReasonJobFailed means the backup job failed after the backup process began. BackupReasonJobFailed BackupConditionReason = "JobFailed" )
type BackupConditionType ¶
type BackupConditionType string
BackupConditionType enumerates the Condition types added to EtcdBackupStatus at different points in its lifecycle
var ( // BackupRunning means the backup job has started. BackupRunning BackupConditionType = "Running" // BackupCompleted means the backup completed successfully. BackupCompleted BackupConditionType = "Completed" // BackupFailed means the backup failed. BackupFailed BackupConditionType = "Failed" )
type ClusterAPI ¶
type ClusterAPI struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +required
metav1.ObjectMeta `json:"metadata,omitempty"`
// spec is the specification of the desired behavior of the capi-operator.
// +required
Spec *ClusterAPISpec `json:"spec,omitempty"`
// status defines the observed status of the capi-operator.
// +optional
Status ClusterAPIStatus `json:"status,omitzero"`
}
ClusterAPI provides configuration for the capi-operator.
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:level=4 +kubebuilder:validation:XValidation:rule="self.metadata.name == 'cluster'",message="clusterapi is a singleton, .metadata.name must be 'cluster'" +kubebuilder:validation:XValidation:rule="!has(oldSelf.status) || has(self.status)",message="status may not be removed once set"
func (*ClusterAPI) DeepCopy ¶
func (in *ClusterAPI) DeepCopy() *ClusterAPI
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAPI.
func (*ClusterAPI) DeepCopyInto ¶
func (in *ClusterAPI) DeepCopyInto(out *ClusterAPI)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterAPI) DeepCopyObject ¶
func (in *ClusterAPI) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ClusterAPI) OpenAPIModelName ¶
func (in ClusterAPI) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ClusterAPI) SwaggerDoc ¶
func (ClusterAPI) SwaggerDoc() map[string]string
type ClusterAPIInstallerComponent ¶
type ClusterAPIInstallerComponent struct {
// name is the human-readable name of the component. The value has no
// effect, and will not be set if the component does not define a name in
// its manifests. If set it must consist of alphanumeric characters, or
// '-', and may not exceed 255 characters.
// +optional
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=255
// +kubebuilder:validation:XValidation:rule="self.matches('^[A-Za-z0-9-]+$')",message="name must consist of alphanumeric characters or '-'"
Name string `json:"name,omitempty"`
ClusterAPIInstallerComponentSource `json:",inline"`
}
ClusterAPIInstallerComponent defines a component which will be installed by this revision.
func (*ClusterAPIInstallerComponent) DeepCopy ¶
func (in *ClusterAPIInstallerComponent) DeepCopy() *ClusterAPIInstallerComponent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAPIInstallerComponent.
func (*ClusterAPIInstallerComponent) DeepCopyInto ¶
func (in *ClusterAPIInstallerComponent) DeepCopyInto(out *ClusterAPIInstallerComponent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClusterAPIInstallerComponent) OpenAPIModelName ¶
func (in ClusterAPIInstallerComponent) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ClusterAPIInstallerComponent) SwaggerDoc ¶
func (ClusterAPIInstallerComponent) SwaggerDoc() map[string]string
type ClusterAPIInstallerComponentImage ¶
type ClusterAPIInstallerComponentImage struct {
// ref is an image reference to the image containing the component manifests. The reference
// must be a valid image digest reference in the format host[:port][/namespace]/name@sha256:<digest>.
// The digest must be 64 characters long, and consist only of lowercase hexadecimal characters, a-f and 0-9.
// The length of the field must be between 1 to 447 characters.
// +required
Ref ImageDigestFormat `json:"ref,omitempty"`
// profile is the name of a profile to use from the image.
//
// A profile name may be up to 255 characters long. It must consist of alphanumeric characters, '-', or '_'.
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=255
// +kubebuilder:validation:XValidation:rule="self.matches('^[a-zA-Z0-9-_]+$')",message="profile must consist of alphanumeric characters, '-', or '_'"
Profile string `json:"profile,omitempty"`
}
ClusterAPIInstallerComponentImage defines an image source for a component.
func (*ClusterAPIInstallerComponentImage) DeepCopy ¶
func (in *ClusterAPIInstallerComponentImage) DeepCopy() *ClusterAPIInstallerComponentImage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAPIInstallerComponentImage.
func (*ClusterAPIInstallerComponentImage) DeepCopyInto ¶
func (in *ClusterAPIInstallerComponentImage) DeepCopyInto(out *ClusterAPIInstallerComponentImage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClusterAPIInstallerComponentImage) OpenAPIModelName ¶
func (in ClusterAPIInstallerComponentImage) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ClusterAPIInstallerComponentImage) SwaggerDoc ¶
func (ClusterAPIInstallerComponentImage) SwaggerDoc() map[string]string
type ClusterAPIInstallerComponentSource ¶
type ClusterAPIInstallerComponentSource struct {
// type is the source type of the component.
// The only valid value is Image.
// When set to Image, the image field must be set and will define an image source for the component.
// +required
// +unionDiscriminator
Type InstallerComponentType `json:"type,omitempty"`
// image defines an image source for a component. The image must contain a
// /capi-operator-installer directory containing the component manifests.
// +optional
Image ClusterAPIInstallerComponentImage `json:"image,omitzero"`
}
ClusterAPIInstallerComponentSource defines the source of a component which will be installed by this revision. +union +kubebuilder:validation:XValidation:rule="self.type == 'Image' ? has(self.image) : !has(self.image)",message="image is required when type is Image, and forbidden otherwise"
func (*ClusterAPIInstallerComponentSource) DeepCopy ¶
func (in *ClusterAPIInstallerComponentSource) DeepCopy() *ClusterAPIInstallerComponentSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAPIInstallerComponentSource.
func (*ClusterAPIInstallerComponentSource) DeepCopyInto ¶
func (in *ClusterAPIInstallerComponentSource) DeepCopyInto(out *ClusterAPIInstallerComponentSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClusterAPIInstallerComponentSource) OpenAPIModelName ¶
func (in ClusterAPIInstallerComponentSource) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ClusterAPIInstallerComponentSource) SwaggerDoc ¶
func (ClusterAPIInstallerComponentSource) SwaggerDoc() map[string]string
type ClusterAPIInstallerRevision ¶
type ClusterAPIInstallerRevision struct {
// name is the name of a revision.
// +required
Name RevisionName `json:"name,omitempty"`
// revision is a monotonically increasing number that is assigned to a revision.
// +required
// +kubebuilder:validation:Minimum=1
Revision int64 `json:"revision,omitempty"`
// contentID uniquely identifies the content of this revision.
// The contentID must be between 1 and 255 characters long.
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=255
ContentID string `json:"contentID,omitempty"`
// unmanagedCustomResourceDefinitions is a list of the names of
// ClusterResourceDefinition (CRD) objects which are included in this
// revision, but which should not be installed or updated. If not set, all
// CRDs in the revision will be managed by the CAPI operator.
// +listType=atomic
// +kubebuilder:validation:items:XValidation:rule="!format.dns1123Subdomain().validate(self).hasValue()",message="a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character."
// +kubebuilder:validation:items:MinLength=1
// +kubebuilder:validation:items:MaxLength=253
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=128
// +optional
UnmanagedCustomResourceDefinitions []string `json:"unmanagedCustomResourceDefinitions,omitempty"`
// manifestSubstitutions is a list of envsubst style substitutions which
// will be applied to manifests in the revision during rendering. If
// defined it must not be empty, and may not contain more than 32 items.
// Each manifest substitution must have a unique key.
// +optional
// +listType=map
// +listMapKey=key
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=32
ManifestSubstitutions []ClusterAPIInstallerRevisionManifestSubstitution `json:"manifestSubstitutions,omitempty"`
// components is a list of components which will be installed by this
// revision. Components will be installed in the order they are listed. If
// omitted no components will be installed.
//
// The maximum number of components is 32.
//
// +optional
// +listType=atomic
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=32
Components []ClusterAPIInstallerComponent `json:"components,omitempty"`
}
+structType=atomic
func (*ClusterAPIInstallerRevision) DeepCopy ¶
func (in *ClusterAPIInstallerRevision) DeepCopy() *ClusterAPIInstallerRevision
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAPIInstallerRevision.
func (*ClusterAPIInstallerRevision) DeepCopyInto ¶
func (in *ClusterAPIInstallerRevision) DeepCopyInto(out *ClusterAPIInstallerRevision)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClusterAPIInstallerRevision) OpenAPIModelName ¶
func (in ClusterAPIInstallerRevision) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ClusterAPIInstallerRevision) SwaggerDoc ¶
func (ClusterAPIInstallerRevision) SwaggerDoc() map[string]string
type ClusterAPIInstallerRevisionManifestSubstitution ¶
type ClusterAPIInstallerRevisionManifestSubstitution struct {
// key is the name of the envsubst variable to substitute. It must be a
// valid envsubst variable name, consisting of letters, digits, and
// underscores, and must start with a letter or underscore. The key must
// not be empty, and must not exceed 255 characters.
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=255
// +kubebuilder:validation:XValidation:rule="self.matches('^[A-Za-z_][A-Za-z0-9_]*$')",message="key must start with a letter or underscore, followed by letters, digits, or underscores"
Key string `json:"key,omitempty"`
// value is the value to substitute for the envsubst variable. It may be
// empty, in which case the variable will be substituted with an empty
// string. The value must not exceed 4096 characters.
// +required
// +kubebuilder:validation:MinLength=0
// +kubebuilder:validation:MaxLength=4096
Value *string `json:"value,omitempty"`
}
ClusterAPIInstallerRevisionManifestSubstitution defines an envsubst style substitution which will be applied to manifests in a revision during rendering.
func (*ClusterAPIInstallerRevisionManifestSubstitution) DeepCopy ¶
func (in *ClusterAPIInstallerRevisionManifestSubstitution) DeepCopy() *ClusterAPIInstallerRevisionManifestSubstitution
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAPIInstallerRevisionManifestSubstitution.
func (*ClusterAPIInstallerRevisionManifestSubstitution) DeepCopyInto ¶
func (in *ClusterAPIInstallerRevisionManifestSubstitution) DeepCopyInto(out *ClusterAPIInstallerRevisionManifestSubstitution)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClusterAPIInstallerRevisionManifestSubstitution) OpenAPIModelName ¶
func (in ClusterAPIInstallerRevisionManifestSubstitution) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ClusterAPIInstallerRevisionManifestSubstitution) SwaggerDoc ¶
func (ClusterAPIInstallerRevisionManifestSubstitution) SwaggerDoc() map[string]string
type ClusterAPIList ¶
type ClusterAPIList struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard list's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
metav1.ListMeta `json:"metadata"`
// items contains the items
Items []ClusterAPI `json:"items"`
}
ClusterAPIList contains a list of ClusterAPI configurations
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:level=4
func (*ClusterAPIList) DeepCopy ¶
func (in *ClusterAPIList) DeepCopy() *ClusterAPIList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAPIList.
func (*ClusterAPIList) DeepCopyInto ¶
func (in *ClusterAPIList) DeepCopyInto(out *ClusterAPIList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterAPIList) DeepCopyObject ¶
func (in *ClusterAPIList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ClusterAPIList) OpenAPIModelName ¶
func (in ClusterAPIList) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ClusterAPIList) SwaggerDoc ¶
func (ClusterAPIList) SwaggerDoc() map[string]string
type ClusterAPISpec ¶
type ClusterAPISpec struct {
// unmanagedCustomResourceDefinitions is a list of ClusterResourceDefinition (CRD)
// names that should not be managed by the capi-operator installer
// controller. This allows external actors to own specific CRDs while
// capi-operator manages others.
//
// Each CRD name must be a valid DNS-1123 subdomain consisting of lowercase
// alphanumeric characters, '-' or '.', and must start and end with an
// alphanumeric character, with a maximum length of 253 characters.
// CRD names must contain at least two '.' characters.
// Example: "clusters.cluster.x-k8s.io"
//
// Items cannot be removed from this list once added.
//
// The maximum number of unmanagedCustomResourceDefinitions is 128.
//
// +optional
// +listType=set
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=128
// +kubebuilder:validation:XValidation:rule="oldSelf.all(item, item in self)",message="items cannot be removed from unmanagedCustomResourceDefinitions list"
// +kubebuilder:validation:items:XValidation:rule="!format.dns1123Subdomain().validate(self).hasValue()",message="a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character."
// +kubebuilder:validation:items:XValidation:rule="self.split('.').size() > 2",message="CRD names must contain at least two '.' characters."
// +kubebuilder:validation:items:MinLength=1
// +kubebuilder:validation:items:MaxLength=253
UnmanagedCustomResourceDefinitions []string `json:"unmanagedCustomResourceDefinitions,omitempty"`
}
ClusterAPISpec defines the desired configuration of the capi-operator. The spec is required but we deliberately allow it to be empty. +kubebuilder:validation:MinProperties=0 +kubebuilder:validation:XValidation:rule="!has(oldSelf.unmanagedCustomResourceDefinitions) || has(self.unmanagedCustomResourceDefinitions)",message="unmanagedCustomResourceDefinitions cannot be unset once set"
func (*ClusterAPISpec) DeepCopy ¶
func (in *ClusterAPISpec) DeepCopy() *ClusterAPISpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAPISpec.
func (*ClusterAPISpec) DeepCopyInto ¶
func (in *ClusterAPISpec) DeepCopyInto(out *ClusterAPISpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClusterAPISpec) OpenAPIModelName ¶
func (in ClusterAPISpec) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ClusterAPISpec) SwaggerDoc ¶
func (ClusterAPISpec) SwaggerDoc() map[string]string
type ClusterAPIStatus ¶
type ClusterAPIStatus struct {
// currentRevision is the name of the most recently fully applied revision.
// It is written by the installer controller. If it is absent, it indicates
// that no revision has been fully applied yet.
// If set, currentRevision must correspond to an entry in the revisions list.
// +optional
CurrentRevision RevisionName `json:"currentRevision,omitempty"`
// desiredRevision is the name of the desired revision. It is written by the
// revision controller. It must be set to the name of the entry in the
// revisions list with the highest revision number.
// +required
DesiredRevision RevisionName `json:"desiredRevision,omitempty"`
// revisions is a list of all currently active revisions. A revision is
// active until the installer controller updates currentRevision to a later
// revision. It is written by the revision controller.
//
// The maximum number of revisions is 16.
// All revisions must have a unique name.
// All revisions must have a unique revision number.
// When adding a revision, the revision number must be greater than the highest revision number in the list.
// Revisions are immutable, although they can be deleted.
//
// +required
// +listType=atomic
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=16
// +kubebuilder:validation:XValidation:rule="self.all(x, self.exists_one(y, x.name == y.name))",message="each revision must have a unique name"
// +kubebuilder:validation:XValidation:rule="self.all(x, self.exists_one(y, x.revision == y.revision))",message="each revision must have a unique revision number"
// +kubebuilder:validation:XValidation:rule="self.all(new, oldSelf.exists(old, old.name == new.name) || oldSelf.all(old, new.revision > old.revision))",message="new revisions must have a revision number greater than all existing revisions"
// +kubebuilder:validation:XValidation:rule="oldSelf.all(old, !self.exists(new, new.name == old.name) || self.exists(new, new == old))",message="existing revisions are immutable, but may be removed"
Revisions []ClusterAPIInstallerRevision `json:"revisions,omitempty"`
// observedRevisionGeneration is the generation of the ClusterAPI object that was last observed by the revision controller.
// If specified it must be greater than or equal to 1, and less than 2^53. It may not decrease or be unset once set.
//
// +optional
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=9007199254740991
// +kubebuilder:validation:XValidation:rule="self >= oldSelf",message="observedRevisionGeneration may not decrease"
ObservedRevisionGeneration int64 `json:"observedRevisionGeneration,omitempty"`
}
ClusterAPIStatus describes the current state of the capi-operator. +kubebuilder:validation:XValidation:rule="self.revisions.exists(r, r.name == self.desiredRevision && self.revisions.all(s, s.revision <= r.revision))",message="desiredRevision must be the name of the revision with the highest revision number" +kubebuilder:validation:XValidation:rule="!has(self.currentRevision) || self.revisions.exists(r, r.name == self.currentRevision)",message="currentRevision must correspond to an entry in the revisions list" +kubebuilder:validation:XValidation:rule="!has(oldSelf.observedRevisionGeneration) || has(self.observedRevisionGeneration)",message="observedRevisionGeneration may not be unset once set"
func (*ClusterAPIStatus) DeepCopy ¶
func (in *ClusterAPIStatus) DeepCopy() *ClusterAPIStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAPIStatus.
func (*ClusterAPIStatus) DeepCopyInto ¶
func (in *ClusterAPIStatus) DeepCopyInto(out *ClusterAPIStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClusterAPIStatus) OpenAPIModelName ¶
func (in ClusterAPIStatus) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ClusterAPIStatus) SwaggerDoc ¶
func (ClusterAPIStatus) SwaggerDoc() map[string]string
type ClusterVersionOperator ¶
type ClusterVersionOperator struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
metav1.ObjectMeta `json:"metadata"`
// spec is the specification of the desired behavior of the Cluster Version Operator.
// +required
Spec ClusterVersionOperatorSpec `json:"spec"`
// status is the most recently observed status of the Cluster Version Operator.
// +optional
Status ClusterVersionOperatorStatus `json:"status"`
}
ClusterVersionOperator holds cluster-wide information about the Cluster Version Operator.
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:level=4 +openshift:file-pattern=cvoRunLevel=0000_00,operatorName=cluster-version-operator,operatorOrdering=01 +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:path=clusterversionoperators,scope=Cluster +openshift:api-approved.openshift.io=https://github.com/openshift/api/pull/2044 +openshift:enable:FeatureGate=ClusterVersionOperatorConfiguration +kubebuilder:validation:XValidation:rule="self.metadata.name == 'cluster'",message="ClusterVersionOperator is a singleton; the .metadata.name field must be 'cluster'"
func (*ClusterVersionOperator) DeepCopy ¶
func (in *ClusterVersionOperator) DeepCopy() *ClusterVersionOperator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterVersionOperator.
func (*ClusterVersionOperator) DeepCopyInto ¶
func (in *ClusterVersionOperator) DeepCopyInto(out *ClusterVersionOperator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterVersionOperator) DeepCopyObject ¶
func (in *ClusterVersionOperator) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ClusterVersionOperator) OpenAPIModelName ¶
func (in ClusterVersionOperator) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ClusterVersionOperator) SwaggerDoc ¶
func (ClusterVersionOperator) SwaggerDoc() map[string]string
type ClusterVersionOperatorList ¶
type ClusterVersionOperatorList struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard list's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
metav1.ListMeta `json:"metadata"`
// items is a list of ClusterVersionOperators.
// +optional
Items []ClusterVersionOperator `json:"items,omitempty"`
}
ClusterVersionOperatorList is a collection of ClusterVersionOperators.
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:level=4
func (*ClusterVersionOperatorList) DeepCopy ¶
func (in *ClusterVersionOperatorList) DeepCopy() *ClusterVersionOperatorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterVersionOperatorList.
func (*ClusterVersionOperatorList) DeepCopyInto ¶
func (in *ClusterVersionOperatorList) DeepCopyInto(out *ClusterVersionOperatorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterVersionOperatorList) DeepCopyObject ¶
func (in *ClusterVersionOperatorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ClusterVersionOperatorList) OpenAPIModelName ¶
func (in ClusterVersionOperatorList) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ClusterVersionOperatorList) SwaggerDoc ¶
func (ClusterVersionOperatorList) SwaggerDoc() map[string]string
type ClusterVersionOperatorSpec ¶
type ClusterVersionOperatorSpec struct {
// operatorLogLevel is an intent based logging for the operator itself. It does not give fine grained control, but it is a
// simple way to manage coarse grained logging choices that operators have to interpret for themselves.
//
// Valid values are: "Normal", "Debug", "Trace", "TraceAll".
// Defaults to "Normal".
// +optional
// +kubebuilder:default=Normal
OperatorLogLevel operatorv1.LogLevel `json:"operatorLogLevel,omitempty"`
}
ClusterVersionOperatorSpec is the specification of the desired behavior of the Cluster Version Operator.
func (*ClusterVersionOperatorSpec) DeepCopy ¶
func (in *ClusterVersionOperatorSpec) DeepCopy() *ClusterVersionOperatorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterVersionOperatorSpec.
func (*ClusterVersionOperatorSpec) DeepCopyInto ¶
func (in *ClusterVersionOperatorSpec) DeepCopyInto(out *ClusterVersionOperatorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClusterVersionOperatorSpec) OpenAPIModelName ¶
func (in ClusterVersionOperatorSpec) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ClusterVersionOperatorSpec) SwaggerDoc ¶
func (ClusterVersionOperatorSpec) SwaggerDoc() map[string]string
type ClusterVersionOperatorStatus ¶
type ClusterVersionOperatorStatus struct {
// observedGeneration represents the most recent generation observed by the operator and specifies the version of
// the spec field currently being synced.
// +optional
// +kubebuilder:validation:XValidation:rule="self >= oldSelf",message="observedGeneration must only increase"
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}
ClusterVersionOperatorStatus defines the observed status of the Cluster Version Operator.
func (*ClusterVersionOperatorStatus) DeepCopy ¶
func (in *ClusterVersionOperatorStatus) DeepCopy() *ClusterVersionOperatorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterVersionOperatorStatus.
func (*ClusterVersionOperatorStatus) DeepCopyInto ¶
func (in *ClusterVersionOperatorStatus) DeepCopyInto(out *ClusterVersionOperatorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClusterVersionOperatorStatus) OpenAPIModelName ¶
func (in ClusterVersionOperatorStatus) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ClusterVersionOperatorStatus) SwaggerDoc ¶
func (ClusterVersionOperatorStatus) SwaggerDoc() map[string]string
type DelegatedAuthentication ¶
type DelegatedAuthentication struct {
// disabled indicates that authentication should be disabled. By default it will use delegated authentication.
Disabled bool `json:"disabled,omitempty"`
}
DelegatedAuthentication allows authentication to be disabled.
func (*DelegatedAuthentication) DeepCopy ¶
func (in *DelegatedAuthentication) DeepCopy() *DelegatedAuthentication
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DelegatedAuthentication.
func (*DelegatedAuthentication) DeepCopyInto ¶
func (in *DelegatedAuthentication) DeepCopyInto(out *DelegatedAuthentication)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (DelegatedAuthentication) OpenAPIModelName ¶
func (in DelegatedAuthentication) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (DelegatedAuthentication) SwaggerDoc ¶
func (DelegatedAuthentication) SwaggerDoc() map[string]string
type DelegatedAuthorization ¶
type DelegatedAuthorization struct {
// disabled indicates that authorization should be disabled. By default it will use delegated authorization.
Disabled bool `json:"disabled,omitempty"`
}
DelegatedAuthorization allows authorization to be disabled.
func (*DelegatedAuthorization) DeepCopy ¶
func (in *DelegatedAuthorization) DeepCopy() *DelegatedAuthorization
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DelegatedAuthorization.
func (*DelegatedAuthorization) DeepCopyInto ¶
func (in *DelegatedAuthorization) DeepCopyInto(out *DelegatedAuthorization)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (DelegatedAuthorization) OpenAPIModelName ¶
func (in DelegatedAuthorization) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (DelegatedAuthorization) SwaggerDoc ¶
func (DelegatedAuthorization) SwaggerDoc() map[string]string
type EtcdBackup ¶
type EtcdBackup struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +required
metav1.ObjectMeta `json:"metadata,omitempty"`
// spec holds user settable values for configuration
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="spec is immutable"
// +required
Spec EtcdBackupSpec `json:"spec,omitzero"`
// status holds observed values from the cluster. They may not be overridden.
// +optional
Status EtcdBackupStatus `json:"status,omitzero"`
}
+genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
# EtcdBackup provides configuration options and status for a one-time backup attempt of the etcd cluster. # When an EtcdBackup is deleted the files created by it will be deleted as well, as long as the storage backend is still accessible.
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:level=4 +kubebuilder:object:root=true +kubebuilder:resource:path=etcdbackups,scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name=Storage Type,JSONPath=.spec.storage.type,type=string,description="Type of storage used for the backup" +kubebuilder:printcolumn:name=Status,JSONPath=.status.conditions[?(@.status=="True")].type,type=string,description="Status of the EtcdBackup" +kubebuilder:printcolumn:name=Completed At,JSONPath=.status.conditions[?(@.type=="Completed")].lastTransitionTime,type=date,description="Completion time of the EtcdBackup" +kubebuilder:printcolumn:name=Age,JSONPath=.metadata.creationTimestamp,type=date,description="Age of the EtcdBackup" +kubebuilder:validation:XValidation:rule="self.metadata.name.size() <= 63",message="name cannot exceed 63 characters" +kubebuilder:metadata:annotations="include.release.openshift.io/self-managed-high-availability=true" +openshift:api-approved.openshift.io=https://github.com/openshift/api/pull/2952 +openshift:file-pattern=cvoRunLevel=0000_10,operatorName=etcd,operatorOrdering=01 +openshift:enable:FeatureGate=AutomatedEtcdBackup
func (*EtcdBackup) DeepCopy ¶
func (in *EtcdBackup) DeepCopy() *EtcdBackup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackup.
func (*EtcdBackup) DeepCopyInto ¶
func (in *EtcdBackup) DeepCopyInto(out *EtcdBackup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EtcdBackup) DeepCopyObject ¶
func (in *EtcdBackup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (EtcdBackup) OpenAPIModelName ¶
func (in EtcdBackup) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (EtcdBackup) SwaggerDoc ¶
func (EtcdBackup) SwaggerDoc() map[string]string
type EtcdBackupAssetType ¶
type EtcdBackupAssetType string
+kubebuilder:validation:Enum=Snapshot;StaticKubeResources
const ( // EtcdBackupAssetTypeSnapshot is used to request an etcd database snapshot. EtcdBackupAssetTypeSnapshot EtcdBackupAssetType = "Snapshot" // EtcdBackupAssetTypeStaticKubeResources is used to request a static pod manifests bundle. EtcdBackupAssetTypeStaticKubeResources EtcdBackupAssetType = "StaticKubeResources" )
type EtcdBackupFile ¶
type EtcdBackupFile struct {
// assetType specifies the type of the backup file.
// If set to Snapshot, the file is an etcd database snapshot.
// If set to StaticKubeResources, the file is a bundle of static pod manifests for the control plane. If etcd is encrypted, this will include the encryption keys.
// +required
AssetType EtcdBackupAssetType `json:"assetType,omitempty"`
// path to the backup file on the storage backend.
// Must be an absolute filepath between 1 and 4096 characters containing only alphanumeric characters, '/', '.', '_', or '-', starting with a '/'.
// This field is required.
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=4096
// +kubebuilder:validation:XValidation:rule=`self.matches('^/[a-zA-Z0-9/._-]+$')`,message="path must be a valid absolute filepath"
// +required
Path string `json:"path,omitempty"`
// sizeBytes is the size of the backup file on the storage backend in bytes.
// If omitted, then the file specified by path is an empty file.
// When specified, must be between 1 and 1000000000000 (1 TB).
// This field is optional.
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=1000000000000
// +optional
SizeBytes int64 `json:"sizeBytes,omitempty"`
}
func (*EtcdBackupFile) DeepCopy ¶
func (in *EtcdBackupFile) DeepCopy() *EtcdBackupFile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupFile.
func (*EtcdBackupFile) DeepCopyInto ¶
func (in *EtcdBackupFile) DeepCopyInto(out *EtcdBackupFile)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EtcdBackupFile) OpenAPIModelName ¶
func (in EtcdBackupFile) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (EtcdBackupFile) SwaggerDoc ¶
func (EtcdBackupFile) SwaggerDoc() map[string]string
type EtcdBackupList ¶
type EtcdBackupList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []EtcdBackup `json:"items"`
}
EtcdBackupList is a collection of items
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:level=4
func (*EtcdBackupList) DeepCopy ¶
func (in *EtcdBackupList) DeepCopy() *EtcdBackupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupList.
func (*EtcdBackupList) DeepCopyInto ¶
func (in *EtcdBackupList) DeepCopyInto(out *EtcdBackupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EtcdBackupList) DeepCopyObject ¶
func (in *EtcdBackupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (EtcdBackupList) OpenAPIModelName ¶
func (in EtcdBackupList) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (EtcdBackupList) SwaggerDoc ¶
func (EtcdBackupList) SwaggerDoc() map[string]string
type EtcdBackupPolicy ¶
type EtcdBackupPolicy struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +required
metav1.ObjectMeta `json:"metadata,omitempty"`
// spec holds user settable values for configuration
// +required
Spec EtcdBackupPolicySpec `json:"spec,omitzero"`
// status holds observed values from the cluster. They may not be overridden.
// +optional
Status EtcdBackupPolicyStatus `json:"status,omitzero"`
}
+genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
EtcdBackupPolicy sets an automated schedule for taking backups of the etcd cluster ¶
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:level=4 +kubebuilder:object:root=true +kubebuilder:resource:path=etcdbackuppolicies,scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name=Storage Type,JSONPath=.spec.storage.type,type=string,description="Type of storage used for the backup" +kubebuilder:printcolumn:name=Schedule,JSONPath=.spec.schedule,type=string,description="Cron schedule for executing backups" +kubebuilder:printcolumn:name=TimeZone,JSONPath=.spec.timeZone,type=string,description="Cron time zone for executing backups" +kubebuilder:printcolumn:name=Status,JSONPath=.status.conditions[?(@.type=="Scheduled")].reason,type=string,description="Status of the EtcdBackupPolicy" +kubebuilder:printcolumn:name=Age,JSONPath=.metadata.creationTimestamp,type=date,description="Age of the EtcdBackupPolicy" +kubebuilder:validation:XValidation:rule="self.metadata.name.size() <= 52",message="name cannot exceed 52 characters" +kubebuilder:metadata:annotations="include.release.openshift.io/self-managed-high-availability=true" +openshift:api-approved.openshift.io=https://github.com/openshift/api/pull/2952 +openshift:file-pattern=cvoRunLevel=0000_10,operatorName=etcd,operatorOrdering=01 +openshift:enable:FeatureGate=AutomatedEtcdBackup
func (*EtcdBackupPolicy) DeepCopy ¶
func (in *EtcdBackupPolicy) DeepCopy() *EtcdBackupPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupPolicy.
func (*EtcdBackupPolicy) DeepCopyInto ¶
func (in *EtcdBackupPolicy) DeepCopyInto(out *EtcdBackupPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EtcdBackupPolicy) DeepCopyObject ¶
func (in *EtcdBackupPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (EtcdBackupPolicy) OpenAPIModelName ¶
func (in EtcdBackupPolicy) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (EtcdBackupPolicy) SwaggerDoc ¶
func (EtcdBackupPolicy) SwaggerDoc() map[string]string
type EtcdBackupPolicyConditionReason ¶
type EtcdBackupPolicyConditionReason string
const ( // BackupPolicyInvalidSchedule is set when parsing the schedule or timeZone fails. BackupPolicyInvalidSchedule EtcdBackupPolicyConditionReason = "InvalidSchedule" // BackupPolicySchedulingFailed is set when there was an error applying a valid schedule. BackupPolicySchedulingFailed EtcdBackupPolicyConditionReason = "SchedulingFailed" // BackupPolicySchedulingSucceeded is set when the policy has been successfully scheduled. BackupPolicySchedulingSucceeded EtcdBackupPolicyConditionReason = "SchedulingSucceeded" )
type EtcdBackupPolicyConditionType ¶
type EtcdBackupPolicyConditionType string
const ( // BackupPolicyScheduled is True if the EtcdBackupPolicy was successfully scheduled, or False if there is an error. // Typically will remain True once set, but will be set False if schedule or timeZone are changed to invalid values, or CronJob is manually deleted and fails to recreate. BackupPolicyScheduled EtcdBackupPolicyConditionType = "Scheduled" )
type EtcdBackupPolicyList ¶
type EtcdBackupPolicyList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []EtcdBackupPolicy `json:"items"`
}
EtcdBackupPolicyList is a collection of items
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:level=4
func (*EtcdBackupPolicyList) DeepCopy ¶
func (in *EtcdBackupPolicyList) DeepCopy() *EtcdBackupPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupPolicyList.
func (*EtcdBackupPolicyList) DeepCopyInto ¶
func (in *EtcdBackupPolicyList) DeepCopyInto(out *EtcdBackupPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EtcdBackupPolicyList) DeepCopyObject ¶
func (in *EtcdBackupPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (EtcdBackupPolicyList) OpenAPIModelName ¶
func (in EtcdBackupPolicyList) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (EtcdBackupPolicyList) SwaggerDoc ¶
func (EtcdBackupPolicyList) SwaggerDoc() map[string]string
type EtcdBackupPolicyLocalDistributionType ¶
type EtcdBackupPolicyLocalDistributionType string
EtcdBackupPolicyLocalDistributionType is an enum of the supported Local storage distribution types
const ( // EtcdBackupPolicyLocalDistributionTypeSingleNode creates a single EtcdBackup at each schedule execution on one of the selected control plane nodes. If multiple nodes are matched by nodeSelector, then backups round robin the nodes in lexicographical order. EtcdBackupPolicyLocalDistributionTypeSingleNode EtcdBackupPolicyLocalDistributionType = "SingleNode" // EtcdBackupPolicyLocalDistributionTypeAllNodes creates EtcdBackups for all selected control plane nodes at each schedule execution. Retention rules will be applied to EtcdBackups grouped by Node (e.g. MaxQuantity 2 results in 2 backups per node, MaxTotalSizeGiB 5 results in 5GiB of backups per node). EtcdBackupPolicyLocalDistributionTypeAllNodes EtcdBackupPolicyLocalDistributionType = "AllNodes" )
type EtcdBackupPolicyRetentionQuantity ¶
type EtcdBackupPolicyRetentionQuantity struct {
// maxQuantity enforces the deletion of completed backups that exceed the total count.
// The total count of completed backups may temporarily exceed the limit when new backups are completed. Older backups are not deleted until a new one has succeeded.
// Must be between 1 and 1000.
// This field is required.
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=1000
// +required
MaxQuantity int32 `json:"maxQuantity,omitempty"`
}
func (*EtcdBackupPolicyRetentionQuantity) DeepCopy ¶
func (in *EtcdBackupPolicyRetentionQuantity) DeepCopy() *EtcdBackupPolicyRetentionQuantity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupPolicyRetentionQuantity.
func (*EtcdBackupPolicyRetentionQuantity) DeepCopyInto ¶
func (in *EtcdBackupPolicyRetentionQuantity) DeepCopyInto(out *EtcdBackupPolicyRetentionQuantity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EtcdBackupPolicyRetentionQuantity) OpenAPIModelName ¶
func (in EtcdBackupPolicyRetentionQuantity) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (EtcdBackupPolicyRetentionQuantity) SwaggerDoc ¶
func (EtcdBackupPolicyRetentionQuantity) SwaggerDoc() map[string]string
type EtcdBackupPolicyRetentionRule ¶
type EtcdBackupPolicyRetentionRule struct {
// type defined which rule field is set
// Allowed values are Quantity and Size.
// When set to Quantity, this rule deletes completed EtcdBackups based on the total count.
// When set to Size, this rule deletes completed EtcdBackups based on the total aggregate size of backup files.
// This field is required.
// +unionDiscriminator
// +kubebuilder:validation:Enum:=Quantity;Size
// +required
Type EtcdBackupPolicyRetentionRuleType `json:"type,omitempty"`
// quantity enforces the deletion of EtcdBackups belonging to the EtcdBackupPolicy based on total count.
// This field is required when the rule type is "Quantity", and forbidden otherwise.
// +optional
Quantity EtcdBackupPolicyRetentionQuantity `json:"quantity,omitzero"`
// size enforces the deletion of EtcdBackups belonging to the EtcdBackupPolicy based on total backup file size.
// At least one backup will always be retained, even if it exceeds the size limit.
// This field is required when the rule type is "Size", and forbidden otherwise.
// +optional
Size EtcdBackupPolicyRetentionSize `json:"size,omitzero"`
}
+union +kubebuilder:validation:XValidation:rule="(self.type == 'Quantity') ? has(self.quantity) : !has(self.quantity)",message="quantity is required when type is Quantity, and forbidden otherwise" +kubebuilder:validation:XValidation:rule="(self.type == 'Size') ? has(self.size) : !has(self.size)",message="size is required when type is Size, and forbidden otherwise"
func (*EtcdBackupPolicyRetentionRule) DeepCopy ¶
func (in *EtcdBackupPolicyRetentionRule) DeepCopy() *EtcdBackupPolicyRetentionRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupPolicyRetentionRule.
func (*EtcdBackupPolicyRetentionRule) DeepCopyInto ¶
func (in *EtcdBackupPolicyRetentionRule) DeepCopyInto(out *EtcdBackupPolicyRetentionRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EtcdBackupPolicyRetentionRule) OpenAPIModelName ¶
func (in EtcdBackupPolicyRetentionRule) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (EtcdBackupPolicyRetentionRule) SwaggerDoc ¶
func (EtcdBackupPolicyRetentionRule) SwaggerDoc() map[string]string
type EtcdBackupPolicyRetentionRuleType ¶
type EtcdBackupPolicyRetentionRuleType string
const ( // EtcdBackupPolicyRetentionRuleTypeQuantity deletes completed EtcdBackups based on the total count. EtcdBackupPolicyRetentionRuleTypeQuantity EtcdBackupPolicyRetentionRuleType = "Quantity" // EtcdBackupPolicyRetentionRuleTypeSize deletes completed EtcdBackups based on the total aggregate size of backup files. EtcdBackupPolicyRetentionRuleTypeSize EtcdBackupPolicyRetentionRuleType = "Size" )
type EtcdBackupPolicyRetentionSize ¶
type EtcdBackupPolicyRetentionSize struct {
// maxTotalSizeGiB enforces the deletion of completed backups by the total size of backups on the storage backend (in GiB).
// This is a soft threshold. The total size of backups may temporarily exceed the limit when new backups are completed. Older backups are not deleted until a new one has succeeded.
// If the newest backup exceeds the limit on its own, it will be retained with all older backups being pruned to ensure at least one valid backup exists.
// Must be between 1 and 10240 (10 TiB).
// This field is required.
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=10240
// +required
MaxTotalSizeGiB int32 `json:"maxTotalSizeGiB,omitempty"`
}
func (*EtcdBackupPolicyRetentionSize) DeepCopy ¶
func (in *EtcdBackupPolicyRetentionSize) DeepCopy() *EtcdBackupPolicyRetentionSize
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupPolicyRetentionSize.
func (*EtcdBackupPolicyRetentionSize) DeepCopyInto ¶
func (in *EtcdBackupPolicyRetentionSize) DeepCopyInto(out *EtcdBackupPolicyRetentionSize)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EtcdBackupPolicyRetentionSize) OpenAPIModelName ¶
func (in EtcdBackupPolicyRetentionSize) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (EtcdBackupPolicyRetentionSize) SwaggerDoc ¶
func (EtcdBackupPolicyRetentionSize) SwaggerDoc() map[string]string
type EtcdBackupPolicySpec ¶
type EtcdBackupPolicySpec struct {
// schedule sets the backup schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
// The value must be one of the following forms:
// a predefined macro "@yearly", "@annually", "@monthly", "@weekly", "@daily" or "@hourly";
// an "@every <duration>" expression where duration is a sequence of decimal numbers each with
// a unit of "s", "m" or "h" (for example "@every 2h" or "@every 1h30m");
// or a standard cron expression of five space separated fields (minute, hour, day-of-month,
// month and day-of-week), where each field may only contain digits, the names used for months
// and days of the week, and the cron special characters "*", "/", "-" and ",".
// This validation only checks the overall shape of the value; the individual field values are
// validated when the schedule is parsed by the controller, which reports parsing failures via
// the schedule's status condition.
// Must be between 1 and 1024 characters long.
// This field is required.
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=1024
// +kubebuilder:validation:XValidation:rule=`self.matches("^(@(annually|yearly|monthly|weekly|daily|hourly)|@every ([0-9]+([.][0-9]+)?(s|m|h))+|(([-0-9*/,A-Za-z]+ ){4}[-0-9*/,A-Za-z]+))$")`,message="must be a valid cron expression, or macro"
// +required
Schedule string `json:"schedule,omitempty"`
// timeZone is an IANA time zone database name used to interpret the schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
// The accepted values are the same as the timeZone field of a CronJob.
// If not specified, this will default to the time zone of the cluster.
// Must be between 1 and 64 characters long.
// This field is optional.
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=64
// +optional
TimeZone string `json:"timeZone,omitempty"`
// assets specifies the type of files to be backed up.
// If Snapshot is present, the etcd database will be snapshotted and saved to the storage backend.
// If StaticKubeResources is present, static pod manifests for the control plane will be bundled and saved to the storage backend. If etcd is encrypted, this will include the encryption keys.
// This field is copied to EtcdBackups created by this policy.
// When specified, must contain between 1 and 2 entries, with at most 1 of each type.
// When omitted, all assets types will be backed up.
// This field is optional.
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=2
// +listType=set
// +optional
Assets []EtcdBackupAssetType `json:"assets,omitempty"`
// nodeSelector specifies which control plane nodes to select from for running backup jobs.
// The default node-role.kubernetes.io/control-plane label will always be added on top of any labels set on nodeSelector.
// If no nodes are matched, then no EtcdBackups will be created.
// For Local storage type, this may be used to target a specific node to take and store the backup. If distribution is AllNodes, then backups are taken on all selected nodes. If distribution is SingleNode, then backups will round robin selected nodes in lexicographical order starting from the last created backup for the policy.
// For PVC storage type, this may be used to control where the backup is taken from. If multiple nodes are selected, the scheduler is responsible for placing the backup job based on volume topology and any other scheduling constraints.
// EtcdBackup nodeSelector is derived from this field.
// When specified, must contain between 1 and 10 entries.
// This field is optional.
// +kubebuilder:validation:MinProperties=1
// +kubebuilder:validation:MaxProperties=10
// +optional
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// storage specifies the location where etcd backup files will be saved.
// EtcdBackup storage is derived from this field.
// In rare cases, where storage type is changed from PVC to Local with AllNodes distribution on an existing policy, old backups on the PVC may need to be manually pruned. Make sure to check that new valid backups exist before deleting old ones.
// This field is required.
// +required
Storage EtcdBackupPolicyStorage `json:"storage,omitzero"`
// retentionRules defines the policy for retaining and deleting completed backups.
// Completed backups are deleted from the oldest first until all rules are satisfied.
// If no rules are specified then backups created by this policy will not be automatically deleted.
// When an EtcdBackup is deleted the files created by it will be deleted as well, as long as the storage backend is still accessible.
// For Local storage with distribution AllNodes, retention is calculated for EtcdBackups grouped by Node (e.g. MaxQuantity 2 results in 2 backups per node, MaxTotalSizeGiB 5 results in 5GiB of backups per node). In all other cases retention is calculated across all EtcdBackups belonging to the policy.
// When specified, must contain between 1 and 2 entries.
// Must not have more than 1 entry of each rule type.
// This field is optional.
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=2
// +listType=map
// +listMapKey=type
// +optional
RetentionRules []EtcdBackupPolicyRetentionRule `json:"retentionRules,omitempty"`
// failedBackupsHistoryLimit defined the number of failed etcdbackups to retain. Failed backups are deleted from the oldest first.
// Must be non-negative integer.
// If set to to 0, then failed backups will be deleted immediately.
// If unset, defaults to 1.
// Must be a positive integer no greater than 100.
// This field is optional.
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=100
// +optional
FailedBackupsHistoryLimit *int32 `json:"failedBackupsHistoryLimit,omitempty"`
}
func (*EtcdBackupPolicySpec) DeepCopy ¶
func (in *EtcdBackupPolicySpec) DeepCopy() *EtcdBackupPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupPolicySpec.
func (*EtcdBackupPolicySpec) DeepCopyInto ¶
func (in *EtcdBackupPolicySpec) DeepCopyInto(out *EtcdBackupPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EtcdBackupPolicySpec) OpenAPIModelName ¶
func (in EtcdBackupPolicySpec) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (EtcdBackupPolicySpec) SwaggerDoc ¶
func (EtcdBackupPolicySpec) SwaggerDoc() map[string]string
type EtcdBackupPolicyStatus ¶
type EtcdBackupPolicyStatus struct {
// conditions provide details on the status of the etcd backup policy.
// Supported conditions include Scheduled.
// If Scheduled is true, scheduling the policy succeeded.
// If Scheduled is false, an error occurred while attempting to schedule the policy. The condition reason and message will provide addition details.
//
// When specified, must contain between 1 and 10 entries, with no more than 1 of each type.
// This field is optional.
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=10
// +listType=map
// +listMapKey=type
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
+kubebuilder:validation:MinProperties=1
func (*EtcdBackupPolicyStatus) DeepCopy ¶
func (in *EtcdBackupPolicyStatus) DeepCopy() *EtcdBackupPolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupPolicyStatus.
func (*EtcdBackupPolicyStatus) DeepCopyInto ¶
func (in *EtcdBackupPolicyStatus) DeepCopyInto(out *EtcdBackupPolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EtcdBackupPolicyStatus) OpenAPIModelName ¶
func (in EtcdBackupPolicyStatus) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (EtcdBackupPolicyStatus) SwaggerDoc ¶
func (EtcdBackupPolicyStatus) SwaggerDoc() map[string]string
type EtcdBackupPolicyStorage ¶
type EtcdBackupPolicyStorage struct {
// type of storage backend to use for storing the etcd backup.
// Allowed values are Local and PVC.
// When set to Local, the backup will be saved to a host path directory on the control plane node it was taken on.
// When set to PVC, the backup will be saved to a volume bound by a PersistentVolumeClaim.
// This field is required.
// +kubebuilder:validation:Enum=PVC;Local
// +required
// +unionDiscriminator
Type EtcdBackupStorageType `json:"type,omitempty"`
// pvc specifies the PersistentVolumeClaim (PVC) which binds a PersistentVolume where the etcd backup file will be saved.
// The PVC must always be created in the "openshift-etcd" namespace.
// This field is required when the storage type is "PVC", and forbidden otherwise.
// +optional
// +unionMember
PVC EtcdBackupPolicyStoragePvc `json:"pvc,omitzero"`
// local specifies a host path directory on the control plane node where the etcd backup file will be saved.
// This field is optional when storage type is "Local", and forbidden otherwise.
// +optional
// +unionMember
Local EtcdBackupPolicyStorageLocal `json:"local,omitzero"`
}
+kubebuilder:validation:XValidation:rule="self.type == 'PVC' ? has(self.pvc) : !has(self.pvc)",message="pvc is required when type is PVC, and forbidden otherwise" +kubebuilder:validation:XValidation:rule="self.type == 'Local' ? true : !has(self.local)",message="local is optional when type is Local, and forbidden otherwise" +union
func (*EtcdBackupPolicyStorage) DeepCopy ¶
func (in *EtcdBackupPolicyStorage) DeepCopy() *EtcdBackupPolicyStorage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupPolicyStorage.
func (*EtcdBackupPolicyStorage) DeepCopyInto ¶
func (in *EtcdBackupPolicyStorage) DeepCopyInto(out *EtcdBackupPolicyStorage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EtcdBackupPolicyStorage) OpenAPIModelName ¶
func (in EtcdBackupPolicyStorage) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (EtcdBackupPolicyStorage) SwaggerDoc ¶
func (EtcdBackupPolicyStorage) SwaggerDoc() map[string]string
type EtcdBackupPolicyStorageLocal ¶
type EtcdBackupPolicyStorageLocal struct {
EtcdBackupStorageLocal `json:",inline"`
// distribution controls whether or not scheduled local backups are only taken on a single node or fan out to all control plane nodes.
// Allowed values are SingleNode and AllNodes
// When set to SingleNode, a single EtcdBackup will be created at each schedule execution on one of the selected control plane nodes. If multiple nodes are matched by nodeSelector, then backups round robin the nodes in lexicographical order.
// When set to AllNodes, EtcdBackups will be created for all selected control plane nodes at each schedule execution. Retention rules will be applied to EtcdBackups grouped by Node (e.g. MaxQuantity 2 results in 2 backups per node, MaxTotalSizeGiB 5 results in 5GiB of backups per node).
// If omitted, defaults to SingleNode.
// This field is optional.
// +kubebuilder:validation:Enum:=SingleNode;AllNodes
// +optional
Distribution EtcdBackupPolicyLocalDistributionType `json:"distribution,omitempty"`
}
+kubebuilder:validation:MinProperties=1
func (*EtcdBackupPolicyStorageLocal) DeepCopy ¶
func (in *EtcdBackupPolicyStorageLocal) DeepCopy() *EtcdBackupPolicyStorageLocal
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupPolicyStorageLocal.
func (*EtcdBackupPolicyStorageLocal) DeepCopyInto ¶
func (in *EtcdBackupPolicyStorageLocal) DeepCopyInto(out *EtcdBackupPolicyStorageLocal)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EtcdBackupPolicyStorageLocal) OpenAPIModelName ¶
func (in EtcdBackupPolicyStorageLocal) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (EtcdBackupPolicyStorageLocal) SwaggerDoc ¶
func (EtcdBackupPolicyStorageLocal) SwaggerDoc() map[string]string
type EtcdBackupPolicyStoragePvc ¶
type EtcdBackupPolicyStoragePvc struct {
EtcdBackupStoragePvc `json:",inline"`
}
+kubebuilder:validation:MinProperties=1
func (*EtcdBackupPolicyStoragePvc) DeepCopy ¶
func (in *EtcdBackupPolicyStoragePvc) DeepCopy() *EtcdBackupPolicyStoragePvc
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupPolicyStoragePvc.
func (*EtcdBackupPolicyStoragePvc) DeepCopyInto ¶
func (in *EtcdBackupPolicyStoragePvc) DeepCopyInto(out *EtcdBackupPolicyStoragePvc)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EtcdBackupPolicyStoragePvc) OpenAPIModelName ¶
func (in EtcdBackupPolicyStoragePvc) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
type EtcdBackupSpec ¶
type EtcdBackupSpec struct {
// assets specifies the type of files to be backed up.
// If Snapshot is present, the etcd database will be snapshotted and saved to the storage backend.
// If StaticKubeResources is present, static pod manifests for the control plane will be bundled and saved to the storage backend. If etcd is encrypted, this will include the encryption keys.
// When specified, must contain between 1 and 2 entries, with at most 1 of each type.
// When omitted, all assets types will be backed up.
// This field is optional.
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=2
// +listType=set
// +optional
Assets []EtcdBackupAssetType `json:"assets,omitempty"`
// nodeSelector specifies which control plane nodes to select from for running the backup job. Only one backup job is run per EtcdBackup.
// The default node-role.kubernetes.io/control-plane label will always be added on top of any labels set on nodeSelector.
// If no nodes are matched, then the backup will be marked failed.
// For Local storage type, this may be used to target a specific node to take and store the backup.
// For PVC storage type, this may be used to control where the backup is taken from. If multiple nodes are selected, the scheduler is responsible for placing the backup job based on volume topology and any other scheduling constraints.
// When specified, must contain between 1 and 10 entries.
// This field is optional.
// +kubebuilder:validation:MinProperties=1
// +kubebuilder:validation:MaxProperties=10
// +optional
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// storage specifies the location where etcd backup files will be saved.
// This field is required.
// +required
Storage EtcdBackupStorage `json:"storage,omitzero"`
}
func (*EtcdBackupSpec) DeepCopy ¶
func (in *EtcdBackupSpec) DeepCopy() *EtcdBackupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupSpec.
func (*EtcdBackupSpec) DeepCopyInto ¶
func (in *EtcdBackupSpec) DeepCopyInto(out *EtcdBackupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EtcdBackupSpec) OpenAPIModelName ¶
func (in EtcdBackupSpec) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (EtcdBackupSpec) SwaggerDoc ¶
func (EtcdBackupSpec) SwaggerDoc() map[string]string
type EtcdBackupStatus ¶
type EtcdBackupStatus struct {
// conditions provide details on the status of the etcd backup job.
// Supported conditions include Running, Completed, and Failed.
// If Running is true, the backup job is currently active.
// If Completed is true, the backup job succeeded and has saved backup files to its storage location.
// If Failed is true, the backup job failed and did not create valid backup files.
//
// When specified, must contain between 1 and 15 entries, with no more than 1 of each type.
// This field is optional.
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=15
// +listType=map
// +listMapKey=type
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
// jobName is a reference to the Job created for the backup. It always runs in the openshift-etcd namespace.
// Must be between 1 and 253 characters and conform to RFC 1123 subdomain format:
// lowercase alphanumeric characters, '-' or '.', starting and ending with alphanumeric characters.
// This field is optional.
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=253
// +kubebuilder:validation:XValidation:rule="!format.dns1123Subdomain().validate(self).hasValue()",message="jobName must be a lowercase RFC 1123 subdomain consisting of lowercase alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character"
// +optional
JobName string `json:"jobName,omitempty"`
// nodeName is used for Local EtcdBackups to bind the control plane node where the snapshot will be taken.
// It is set by the cluster-etcd-operator before the Local backup runs to ensure the file location is known for garbage collection.
// Must be between 1 and 253 characters and conform to RFC 1123 subdomain format:
// lowercase alphanumeric characters, '-' or '.', starting and ending with alphanumeric characters.
// This field is optional.
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=253
// +kubebuilder:validation:XValidation:rule="!format.dns1123Subdomain().validate(self).hasValue()",message="nodeName must be a lowercase RFC 1123 subdomain consisting of lowercase alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character"
// +optional
NodeName string `json:"nodeName,omitempty"`
// files tracks the path and size of files generated by the etcd backup.
// Includes both etcd snapshots and static manifests.
// When specified, must contain between 1 and 10 entries.
// This field is optional.
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=10
// +listType=map
// +listMapKey=path
// +optional
Files []EtcdBackupFile `json:"files,omitempty"`
}
+kubebuilder:validation:MinProperties=1
func (*EtcdBackupStatus) DeepCopy ¶
func (in *EtcdBackupStatus) DeepCopy() *EtcdBackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupStatus.
func (*EtcdBackupStatus) DeepCopyInto ¶
func (in *EtcdBackupStatus) DeepCopyInto(out *EtcdBackupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EtcdBackupStatus) OpenAPIModelName ¶
func (in EtcdBackupStatus) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (EtcdBackupStatus) SwaggerDoc ¶
func (EtcdBackupStatus) SwaggerDoc() map[string]string
type EtcdBackupStorage ¶
type EtcdBackupStorage struct {
// type of storage backend to use for storing the etcd backup.
// Allowed values are Local and PVC.
// When set to Local, the backup will be saved to a host path directory on the control plane node it was taken on.
// When set to PVC, the backup will be saved to a volume bound by a PersistentVolumeClaim.
// This field is required.
// +kubebuilder:validation:Enum=PVC;Local
// +required
// +unionDiscriminator
Type EtcdBackupStorageType `json:"type,omitempty"`
// pvc specifies the PersistentVolumeClaim (PVC) which binds a PersistentVolume where the etcd backup file will be saved.
// The PVC must always be created in the "openshift-etcd" namespace.
// This field is required when the storage type is "PVC", and forbidden otherwise.
// +optional
// +unionMember
PVC EtcdBackupStoragePvc `json:"pvc,omitzero"`
// local specifies a host path directory on the control plane node where the etcd backup file will be saved.
// This field is optional when storage type is "Local", and forbidden otherwise.
// +optional
// +unionMember
Local EtcdBackupStorageLocal `json:"local,omitzero"`
}
+kubebuilder:validation:XValidation:rule="self.type == 'PVC' ? has(self.pvc) : !has(self.pvc)",message="pvc is required when type is PVC, and forbidden otherwise" +kubebuilder:validation:XValidation:rule="self.type == 'Local' ? true : !has(self.local)",message="local is optional when type is Local, and forbidden otherwise" +union
func (*EtcdBackupStorage) DeepCopy ¶
func (in *EtcdBackupStorage) DeepCopy() *EtcdBackupStorage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupStorage.
func (*EtcdBackupStorage) DeepCopyInto ¶
func (in *EtcdBackupStorage) DeepCopyInto(out *EtcdBackupStorage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EtcdBackupStorage) OpenAPIModelName ¶
func (in EtcdBackupStorage) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (EtcdBackupStorage) SwaggerDoc ¶
func (EtcdBackupStorage) SwaggerDoc() map[string]string
type EtcdBackupStorageLocal ¶
type EtcdBackupStorageLocal struct {
// hostPath is a local directory on the control plane node where the etcd backup file will be saved.
// hostPath must be an absolute filepath between 1 and 2048 characters containing only alphanumeric characters, '/', '.', '_', or '-', starting with a '/'.
// When omitted, hostPath defaults to "/etc/kubernetes/cluster-backup".
// This field is optional.
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=2048
// +kubebuilder:validation:XValidation:rule=`self.matches('^/[a-zA-Z0-9/._-]+$')`,message="hostPath must be a valid absolute filepath containing only alphanumeric characters, '/', '.', '_', or '-', starting with a '/'"
// +optional
HostPath string `json:"hostPath,omitempty"`
}
+kubebuilder:validation:MinProperties=1
func (*EtcdBackupStorageLocal) DeepCopy ¶
func (in *EtcdBackupStorageLocal) DeepCopy() *EtcdBackupStorageLocal
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupStorageLocal.
func (*EtcdBackupStorageLocal) DeepCopyInto ¶
func (in *EtcdBackupStorageLocal) DeepCopyInto(out *EtcdBackupStorageLocal)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EtcdBackupStorageLocal) OpenAPIModelName ¶
func (in EtcdBackupStorageLocal) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (EtcdBackupStorageLocal) SwaggerDoc ¶
func (EtcdBackupStorageLocal) SwaggerDoc() map[string]string
type EtcdBackupStoragePvc ¶
type EtcdBackupStoragePvc struct {
// name is a reference to a PVC in the "openshift-etcd" namespace where the etcd backup file will be saved.
// name must be between 1 and 253 characters and conform to RFC 1123 subdomain format:
// lowercase alphanumeric characters, '-' or '.', starting and ending with alphanumeric characters.
// This field is required.
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=253
// +kubebuilder:validation:XValidation:rule="!format.dns1123Subdomain().validate(self).hasValue()",message="name must be a lowercase RFC 1123 subdomain consisting of lowercase alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character"
// +required
Name string `json:"name,omitempty"`
// path is a directory on the volume where the etcd backup file will be saved.
// When present, path must be an absolute filepath between 1 and 2048 characters containing only alphanumeric characters, '/', '.', '_', or '-', starting with a '/'.
// This field is optional.
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=2048
// +kubebuilder:validation:XValidation:rule=`self.matches('^/[a-zA-Z0-9/._-]+$')`,message="path must be a valid absolute filepath containing only alphanumeric characters, '/', '.', '_', or '-', starting with a '/'"
// +optional
Path string `json:"path,omitempty"`
}
func (*EtcdBackupStoragePvc) DeepCopy ¶
func (in *EtcdBackupStoragePvc) DeepCopy() *EtcdBackupStoragePvc
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdBackupStoragePvc.
func (*EtcdBackupStoragePvc) DeepCopyInto ¶
func (in *EtcdBackupStoragePvc) DeepCopyInto(out *EtcdBackupStoragePvc)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EtcdBackupStoragePvc) OpenAPIModelName ¶
func (in EtcdBackupStoragePvc) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (EtcdBackupStoragePvc) SwaggerDoc ¶
func (EtcdBackupStoragePvc) SwaggerDoc() map[string]string
type EtcdBackupStorageType ¶
type EtcdBackupStorageType string
EtcdBackupStorageType is an enum of the supported storage backends for backup files
const ( // EtcdBackupStorageTypePVC configures backups to be stored on a PersistenVolumeClaim. EtcdBackupStorageTypePVC EtcdBackupStorageType = "PVC" // EtcdBackupStorageTypePVC configures backups to be stored locally on control plane nodes. EtcdBackupStorageTypeLocal EtcdBackupStorageType = "Local" )
type GatewayAPIIngressConfig ¶
type GatewayAPIIngressConfig struct {
// managementMode specifies how the Cluster Ingress Operator manages Gateway API
// Custom Resource Definitions (CRDs), the OpenShift Gateway API implementation,
// and its Gateway API controllers.
//
// Allowed values are "Managed" and "Unmanaged".
//
// When omitted or set to "Managed", the ingress operator installs, owns, and
// upgrades the Gateway API CRDs, protects them with a Validating Admission
// Policy, and deploys the OpenShift Gateway API implementation and its Gateway
// API controllers.
//
// When set to "Unmanaged", the ingress operator does not install or manage
// Gateway API CRDs and does not deploy the OpenShift Gateway API implementation
// or its Gateway API controllers. The cluster administrator or a third-party
// product is responsible for providing their own CRDs and Gateway controller.
// The ingress operator reports observational status only.
//
// +optional
ManagementMode GatewayAPIManagementMode `json:"managementMode,omitempty"`
}
GatewayAPIIngressConfig holds configuration for Gateway API integration in the Cluster Ingress Operator. +kubebuilder:validation:MinProperties=1
func (*GatewayAPIIngressConfig) DeepCopy ¶
func (in *GatewayAPIIngressConfig) DeepCopy() *GatewayAPIIngressConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayAPIIngressConfig.
func (*GatewayAPIIngressConfig) DeepCopyInto ¶
func (in *GatewayAPIIngressConfig) DeepCopyInto(out *GatewayAPIIngressConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (GatewayAPIIngressConfig) OpenAPIModelName ¶
func (in GatewayAPIIngressConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (GatewayAPIIngressConfig) SwaggerDoc ¶
func (GatewayAPIIngressConfig) SwaggerDoc() map[string]string
type GatewayAPIManagementMode ¶
type GatewayAPIManagementMode string
GatewayAPIManagementMode describes how the Cluster Ingress Operator manages Gateway API Custom Resource Definitions. +kubebuilder:validation:Enum=Managed;Unmanaged
const ( // GatewayAPIManagementModeManaged means the ingress operator installs, owns, // protects (via a Validating Admission Policy), and upgrades the Gateway API // CRDs, deploys the OpenShift Gateway API implementation, and runs its Gateway // API controllers. This is the default mode and the only fully supported // configuration. GatewayAPIManagementModeManaged GatewayAPIManagementMode = "Managed" // GatewayAPIManagementModeUnmanaged means the ingress operator does not // install or manage Gateway API CRDs, does not deploy the OpenShift Gateway // API implementation, and does not run its Gateway API controllers. The // cluster administrator or a third-party product is responsible for bringing // their own CRDs and Gateway controller. The ingress operator reports // observational status only. GatewayAPIManagementModeUnmanaged GatewayAPIManagementMode = "Unmanaged" )
type GenerationHistory ¶
type GenerationHistory struct {
// group is the group of the thing you're tracking
Group string `json:"group"`
// resource is the resource type of the thing you're tracking
Resource string `json:"resource"`
// namespace is where the thing you're tracking is
Namespace string `json:"namespace"`
// name is the name of the thing you're tracking
Name string `json:"name"`
// lastGeneration is the last generation of the workload controller involved
LastGeneration int64 `json:"lastGeneration"`
}
GenerationHistory keeps track of the generation for a given resource so that decisions about forced updated can be made. DEPRECATED: Use fields in v1.GenerationStatus instead
func (*GenerationHistory) DeepCopy ¶
func (in *GenerationHistory) DeepCopy() *GenerationHistory
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenerationHistory.
func (*GenerationHistory) DeepCopyInto ¶
func (in *GenerationHistory) DeepCopyInto(out *GenerationHistory)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (GenerationHistory) OpenAPIModelName ¶
func (in GenerationHistory) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (GenerationHistory) SwaggerDoc ¶
func (GenerationHistory) SwaggerDoc() map[string]string
type GenericOperatorConfig ¶
type GenericOperatorConfig struct {
metav1.TypeMeta `json:",inline"`
// servingInfo is the HTTP serving information for the controller's endpoints
ServingInfo configv1.HTTPServingInfo `json:"servingInfo,omitempty"`
// leaderElection provides information to elect a leader. Only override this if you have a specific need
LeaderElection configv1.LeaderElection `json:"leaderElection,omitempty"`
// authentication allows configuration of authentication for the endpoints
Authentication DelegatedAuthentication `json:"authentication,omitempty"`
// authorization allows configuration of authentication for the endpoints
Authorization DelegatedAuthorization `json:"authorization,omitempty"`
}
GenericOperatorConfig provides information to configure an operator
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:internal
func (*GenericOperatorConfig) DeepCopy ¶
func (in *GenericOperatorConfig) DeepCopy() *GenericOperatorConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericOperatorConfig.
func (*GenericOperatorConfig) DeepCopyInto ¶
func (in *GenericOperatorConfig) DeepCopyInto(out *GenericOperatorConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GenericOperatorConfig) DeepCopyObject ¶
func (in *GenericOperatorConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (GenericOperatorConfig) OpenAPIModelName ¶
func (in GenericOperatorConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (GenericOperatorConfig) SwaggerDoc ¶
func (GenericOperatorConfig) SwaggerDoc() map[string]string
type ImageContentSourcePolicy ¶
type ImageContentSourcePolicy struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
metav1.ObjectMeta `json:"metadata,omitempty"`
// spec holds user settable values for configuration
// +required
Spec ImageContentSourcePolicySpec `json:"spec"`
}
ImageContentSourcePolicy holds cluster-wide information about how to handle registry mirror rules. When multiple policies are defined, the outcome of the behavior is defined on each field.
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +kubebuilder:object:root=true +kubebuilder:resource:path=imagecontentsourcepolicies,scope=Cluster +kubebuilder:subresource:status +openshift:api-approved.openshift.io=https://github.com/openshift/api/pull/470 +openshift:file-pattern=cvoRunLevel=0000_10,operatorName=config-operator,operatorOrdering=01 +openshift:compatibility-gen:level=4 +kubebuilder:metadata:annotations=release.openshift.io/bootstrap-required=true
func (*ImageContentSourcePolicy) DeepCopy ¶
func (in *ImageContentSourcePolicy) DeepCopy() *ImageContentSourcePolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageContentSourcePolicy.
func (*ImageContentSourcePolicy) DeepCopyInto ¶
func (in *ImageContentSourcePolicy) DeepCopyInto(out *ImageContentSourcePolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageContentSourcePolicy) DeepCopyObject ¶
func (in *ImageContentSourcePolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ImageContentSourcePolicy) OpenAPIModelName ¶
func (in ImageContentSourcePolicy) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ImageContentSourcePolicy) SwaggerDoc ¶
func (ImageContentSourcePolicy) SwaggerDoc() map[string]string
type ImageContentSourcePolicyList ¶
type ImageContentSourcePolicyList struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard list's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
metav1.ListMeta `json:"metadata"`
Items []ImageContentSourcePolicy `json:"items"`
}
ImageContentSourcePolicyList lists the items in the ImageContentSourcePolicy CRD.
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:level=4
func (*ImageContentSourcePolicyList) DeepCopy ¶
func (in *ImageContentSourcePolicyList) DeepCopy() *ImageContentSourcePolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageContentSourcePolicyList.
func (*ImageContentSourcePolicyList) DeepCopyInto ¶
func (in *ImageContentSourcePolicyList) DeepCopyInto(out *ImageContentSourcePolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageContentSourcePolicyList) DeepCopyObject ¶
func (in *ImageContentSourcePolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ImageContentSourcePolicyList) OpenAPIModelName ¶
func (in ImageContentSourcePolicyList) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ImageContentSourcePolicyList) SwaggerDoc ¶
func (ImageContentSourcePolicyList) SwaggerDoc() map[string]string
type ImageContentSourcePolicySpec ¶
type ImageContentSourcePolicySpec struct {
// repositoryDigestMirrors allows images referenced by image digests in pods to be
// pulled from alternative mirrored repository locations. The image pull specification
// provided to the pod will be compared to the source locations described in RepositoryDigestMirrors
// and the image may be pulled down from any of the mirrors in the list instead of the
// specified repository allowing administrators to choose a potentially faster mirror.
// Only image pull specifications that have an image digest will have this behavior applied
// to them - tags will continue to be pulled from the specified repository in the pull spec.
//
// Each “source” repository is treated independently; configurations for different “source”
// repositories don’t interact.
//
// When multiple policies are defined for the same “source” repository, the sets of defined
// mirrors will be merged together, preserving the relative order of the mirrors, if possible.
// For example, if policy A has mirrors `a, b, c` and policy B has mirrors `c, d, e`, the
// mirrors will be used in the order `a, b, c, d, e`. If the orders of mirror entries conflict
// (e.g. `a, b` vs. `b, a`) the configuration is not rejected but the resulting order is unspecified.
// +optional
RepositoryDigestMirrors []RepositoryDigestMirrors `json:"repositoryDigestMirrors"`
}
ImageContentSourcePolicySpec is the specification of the ImageContentSourcePolicy CRD.
func (*ImageContentSourcePolicySpec) DeepCopy ¶
func (in *ImageContentSourcePolicySpec) DeepCopy() *ImageContentSourcePolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageContentSourcePolicySpec.
func (*ImageContentSourcePolicySpec) DeepCopyInto ¶
func (in *ImageContentSourcePolicySpec) DeepCopyInto(out *ImageContentSourcePolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ImageContentSourcePolicySpec) OpenAPIModelName ¶
func (in ImageContentSourcePolicySpec) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ImageContentSourcePolicySpec) SwaggerDoc ¶
func (ImageContentSourcePolicySpec) SwaggerDoc() map[string]string
type ImageDigestFormat ¶
type ImageDigestFormat string
ImageDigestFormat is a type that conforms to the format host[:port][/namespace[/namespace...]]/name@sha256:<digest>. The host may be a dotted domain name (including IPv4 addresses like 192.168.1.1), or an IPv6 address in brackets (e.g. [fd00::1]). The digest must be 64 characters long, and consist only of lowercase hexadecimal characters, a-f and 0-9. The length of the field must be between 1 to 447 characters. +kubebuilder:validation:MinLength=1 +kubebuilder:validation:MaxLength=447 +kubebuilder:validation:XValidation:rule=`(self.split('@').size() == 2 && self.split('@')[1].matches('^sha256:[a-f0-9]{64}$'))`,message="the OCI Image reference must end with a valid '@sha256:<digest>' suffix, where '<digest>' is 64 characters long" +kubebuilder:validation:XValidation:rule=`(self.split('@')[0].matches('^(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:\\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*|\\[(?:[a-fA-F0-9:]+)\\])(?::[0-9]+)?/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*(?:/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*)*$'))`,message="the OCI Image name should follow the host[:port][/namespace[/namespace...]]/name format, where host is a domain name, IPv4, or IPv6 address in brackets"
type Ingress ¶
type Ingress struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +required
metav1.ObjectMeta `json:"metadata"`
// spec holds user settable values for configuration.
// +required
Spec IngressSpec `json:"spec,omitzero"`
// status holds observed values from the cluster.
// +optional
Status IngressStatus `json:"status,omitzero"`
}
Ingress contains configuration options specific to the Ingress Operator itself, including how it manages Gateway API integration.
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:level=4 +openshift:file-pattern=cvoRunLevel=0000_50,operatorName=ingress,operatorOrdering=02 +kubebuilder:object:root=true +kubebuilder:resource:path=ingresses,scope=Cluster +kubebuilder:subresource:status +openshift:api-approved.openshift.io=https://github.com/openshift/api/pull/2890 +openshift:capability=Ingress +openshift:enable:FeatureGate=GatewayAPIManagementMode +kubebuilder:validation:XValidation:rule="self.metadata.name == 'cluster'",message="Ingress is a singleton; the .metadata.name field must be 'cluster'"
func (*Ingress) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ingress.
func (*Ingress) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Ingress) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (Ingress) OpenAPIModelName ¶
OpenAPIModelName returns the OpenAPI model name for this type.
func (Ingress) SwaggerDoc ¶
type IngressList ¶
type IngressList struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard list's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
metav1.ListMeta `json:"metadata"`
// items is a list of Ingresses.
// +optional
Items []Ingress `json:"items,omitempty"`
}
IngressList is a collection of Ingresses.
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:level=4
func (*IngressList) DeepCopy ¶
func (in *IngressList) DeepCopy() *IngressList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressList.
func (*IngressList) DeepCopyInto ¶
func (in *IngressList) DeepCopyInto(out *IngressList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IngressList) DeepCopyObject ¶
func (in *IngressList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (IngressList) OpenAPIModelName ¶
func (in IngressList) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (IngressList) SwaggerDoc ¶
func (IngressList) SwaggerDoc() map[string]string
type IngressSpec ¶
type IngressSpec struct {
// gatewayAPI holds configuration for Gateway API integration, including how the
// ingress operator manages Gateway API CRDs, the OpenShift Gateway API
// implementation, and its Gateway API controllers.
//
// +optional
GatewayAPI GatewayAPIIngressConfig `json:"gatewayAPI,omitzero"`
}
IngressSpec is the specification of the desired behavior of the Ingress Operator. +kubebuilder:validation:MinProperties=1
func (*IngressSpec) DeepCopy ¶
func (in *IngressSpec) DeepCopy() *IngressSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressSpec.
func (*IngressSpec) DeepCopyInto ¶
func (in *IngressSpec) DeepCopyInto(out *IngressSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (IngressSpec) OpenAPIModelName ¶
func (in IngressSpec) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (IngressSpec) SwaggerDoc ¶
func (IngressSpec) SwaggerDoc() map[string]string
type IngressStatus ¶
type IngressStatus struct {
// conditions is a list of conditions and their status.
//
// Gateway API CRD management conditions are reported here with the "GatewayAPI" prefix:
//
// * "GatewayAPICRDsManaged" indicates whether the ingress operator is actively
// managing Gateway API CRDs.
// * "GatewayAPICRDsPresent" indicates whether Gateway API CRDs exist on the
// cluster.
// * "GatewayAPICRDsCompliant" indicates whether the installed CRDs match the
// version expected by this ingress operator release.
//
// +listType=map
// +listMapKey=type
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=32
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
// observedGeneration represents the most recent generation observed by the operator and specifies the version of
// the spec field currently being synced.
//
// When omitted, the operator has not yet observed the resource.
// +optional
// +kubebuilder:validation:Minimum=1
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}
IngressStatus defines the observed status of the Ingress Operator. +kubebuilder:validation:MinProperties=1 +kubebuilder:validation:XValidation:rule="!has(oldSelf.observedGeneration) || (has(self.observedGeneration) && self.observedGeneration >= oldSelf.observedGeneration)",message="observedGeneration must remain set and only increase once set"
func (*IngressStatus) DeepCopy ¶
func (in *IngressStatus) DeepCopy() *IngressStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressStatus.
func (*IngressStatus) DeepCopyInto ¶
func (in *IngressStatus) DeepCopyInto(out *IngressStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (IngressStatus) OpenAPIModelName ¶
func (in IngressStatus) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (IngressStatus) SwaggerDoc ¶
func (IngressStatus) SwaggerDoc() map[string]string
type InstallerComponentType ¶
type InstallerComponentType string
InstallerComponentType is the type of component to install. +kubebuilder:validation:Enum=Image +enum
const ( // InstallerComponentTypeImage is an image source for a component. InstallerComponentTypeImage InstallerComponentType = "Image" )
type LoggingConfig ¶
type LoggingConfig struct {
// level is passed to glog.
Level int64 `json:"level"`
// vmodule is passed to glog.
Vmodule string `json:"vmodule"`
}
LoggingConfig holds information about configuring logging DEPRECATED: Use v1.LogLevel instead
func (*LoggingConfig) DeepCopy ¶
func (in *LoggingConfig) DeepCopy() *LoggingConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoggingConfig.
func (*LoggingConfig) DeepCopyInto ¶
func (in *LoggingConfig) DeepCopyInto(out *LoggingConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (LoggingConfig) OpenAPIModelName ¶
func (in LoggingConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (LoggingConfig) SwaggerDoc ¶
func (LoggingConfig) SwaggerDoc() map[string]string
type ManagementState ¶
type ManagementState string
DEPRECATED: Use v1.ManagementState instead
const ( // Managed means that the operator is actively managing its resources and trying to keep the component active // DEPRECATED: Use v1.Managed instead Managed ManagementState = "Managed" // Unmanaged means that the operator is not taking any action related to the component // DEPRECATED: Use v1.Unmanaged instead Unmanaged ManagementState = "Unmanaged" // Removed means that the operator is actively managing its resources and trying to remove all traces of the component // DEPRECATED: Use v1.Removed instead Removed ManagementState = "Removed" )
type NodeStatus ¶
type NodeStatus struct {
// nodeName is the name of the node
NodeName string `json:"nodeName"`
// currentDeploymentGeneration is the generation of the most recently successful deployment
CurrentDeploymentGeneration int32 `json:"currentDeploymentGeneration"`
// targetDeploymentGeneration is the generation of the deployment we're trying to apply
TargetDeploymentGeneration int32 `json:"targetDeploymentGeneration"`
// lastFailedDeploymentGeneration is the generation of the deployment we tried and failed to deploy.
LastFailedDeploymentGeneration int32 `json:"lastFailedDeploymentGeneration"`
// lastFailedDeploymentGenerationErrors is a list of the errors during the failed deployment referenced in lastFailedDeploymentGeneration
LastFailedDeploymentErrors []string `json:"lastFailedDeploymentErrors"`
}
NodeStatus provides information about the current state of a particular node managed by this operator. Deprecated: Use v1.NodeStatus instead
func (*NodeStatus) DeepCopy ¶
func (in *NodeStatus) DeepCopy() *NodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeStatus.
func (*NodeStatus) DeepCopyInto ¶
func (in *NodeStatus) DeepCopyInto(out *NodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeStatus) OpenAPIModelName ¶
func (in NodeStatus) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeStatus) SwaggerDoc ¶
func (NodeStatus) SwaggerDoc() map[string]string
type OLM ¶
type OLM struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
metav1.ObjectMeta `json:"metadata"`
//spec holds user settable values for configuration
// +required
Spec OLMSpec `json:"spec"`
// status holds observed values from the cluster. They may not be overridden.
// +optional
Status OLMStatus `json:"status"`
}
OLM provides information to configure an operator to manage the OLM controllers
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:level=4 +kubebuilder:object:root=true +kubebuilder:resource:path=olms,scope=Cluster +kubebuilder:subresource:status +kubebuilder:metadata:annotations=include.release.openshift.io/ibm-cloud-managed=false +kubebuilder:metadata:annotations=include.release.openshift.io/self-managed-high-availability=true +openshift:api-approved.openshift.io=https://github.com/openshift/api/pull/1504 +openshift:file-pattern=cvoRunLevel=0000_10,operatorName=operator-lifecycle-manager,operatorOrdering=01 +openshift:enable:FeatureGate=NewOLM +kubebuilder:validation:XValidation:rule="self.metadata.name == 'cluster'",message="olm is a singleton, .metadata.name must be 'cluster'"
func (*OLM) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OLM.
func (*OLM) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OLM) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (OLM) OpenAPIModelName ¶
OpenAPIModelName returns the OpenAPI model name for this type.
func (OLM) SwaggerDoc ¶
type OLMList ¶
type OLMList struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard list's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
metav1.ListMeta `json:"metadata"`
// items contains the items
Items []OLM `json:"items"`
}
OLMList is a collection of items
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:level=4
func (*OLMList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OLMList.
func (*OLMList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OLMList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (OLMList) OpenAPIModelName ¶
OpenAPIModelName returns the OpenAPI model name for this type.
func (OLMList) SwaggerDoc ¶
type OLMSpec ¶
type OLMSpec struct {
operatorv1.OperatorSpec `json:",inline"`
}
func (*OLMSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OLMSpec.
func (*OLMSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (OLMSpec) OpenAPIModelName ¶
OpenAPIModelName returns the OpenAPI model name for this type.
type OLMStatus ¶
type OLMStatus struct {
operatorv1.OperatorStatus `json:",inline"`
}
func (*OLMStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OLMStatus.
func (*OLMStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (OLMStatus) OpenAPIModelName ¶
OpenAPIModelName returns the OpenAPI model name for this type.
type OperatorCondition ¶
type OperatorCondition struct {
Type string `json:"type"`
Status ConditionStatus `json:"status"`
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
Reason string `json:"reason,omitempty"`
Message string `json:"message,omitempty"`
}
OperatorCondition is just the standard condition fields. DEPRECATED: Use v1.OperatorCondition instead
func (*OperatorCondition) DeepCopy ¶
func (in *OperatorCondition) DeepCopy() *OperatorCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorCondition.
func (*OperatorCondition) DeepCopyInto ¶
func (in *OperatorCondition) DeepCopyInto(out *OperatorCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (OperatorCondition) OpenAPIModelName ¶
func (in OperatorCondition) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (OperatorCondition) SwaggerDoc ¶
func (OperatorCondition) SwaggerDoc() map[string]string
type OperatorSpec ¶
type OperatorSpec struct {
// managementState indicates whether and how the operator should manage the component
ManagementState ManagementState `json:"managementState"`
// imagePullSpec is the image to use for the component.
ImagePullSpec string `json:"imagePullSpec"`
// imagePullPolicy specifies the image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified,
// or IfNotPresent otherwise.
ImagePullPolicy string `json:"imagePullPolicy"`
// version is the desired state in major.minor.micro-patch. Usually patch is ignored.
Version string `json:"version"`
// logging contains glog parameters for the component pods. It's always a command line arg for the moment
Logging LoggingConfig `json:"logging,omitempty"`
}
OperatorSpec contains common fields for an operator to need. It is intended to be anonymous included inside of the Spec struct for you particular operator. DEPRECATED: Use v1.OperatorSpec instead
func (*OperatorSpec) DeepCopy ¶
func (in *OperatorSpec) DeepCopy() *OperatorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorSpec.
func (*OperatorSpec) DeepCopyInto ¶
func (in *OperatorSpec) DeepCopyInto(out *OperatorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (OperatorSpec) OpenAPIModelName ¶
func (in OperatorSpec) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (OperatorSpec) SwaggerDoc ¶
func (OperatorSpec) SwaggerDoc() map[string]string
type OperatorStatus ¶
type OperatorStatus struct {
// observedGeneration is the last generation change you've dealt with
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// conditions is a list of conditions and their status
Conditions []OperatorCondition `json:"conditions,omitempty"`
// state indicates what the operator has observed to be its current operational status.
State ManagementState `json:"state,omitempty"`
// taskSummary is a high level summary of what the controller is currently attempting to do. It is high-level, human-readable
// and not guaranteed in any way. (I needed this for debugging and realized it made a great summary).
TaskSummary string `json:"taskSummary,omitempty"`
// currentVersionAvailability is availability information for the current version. If it is unmanged or removed, this doesn't exist.
CurrentAvailability *VersionAvailability `json:"currentVersionAvailability,omitempty"`
// targetVersionAvailability is availability information for the target version if we are migrating
TargetAvailability *VersionAvailability `json:"targetVersionAvailability,omitempty"`
}
OperatorStatus contains common fields for an operator to need. It is intended to be anonymous included inside of the Status struct for you particular operator. DEPRECATED: Use v1.OperatorStatus instead
func (*OperatorStatus) DeepCopy ¶
func (in *OperatorStatus) DeepCopy() *OperatorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorStatus.
func (*OperatorStatus) DeepCopyInto ¶
func (in *OperatorStatus) DeepCopyInto(out *OperatorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (OperatorStatus) OpenAPIModelName ¶
func (in OperatorStatus) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (OperatorStatus) SwaggerDoc ¶
func (OperatorStatus) SwaggerDoc() map[string]string
type RepositoryDigestMirrors ¶
type RepositoryDigestMirrors struct {
// source is the repository that users refer to, e.g. in image pull specifications.
// +required
Source string `json:"source"`
// mirrors is one or more repositories that may also contain the same images.
// The order of mirrors in this list is treated as the user's desired priority, while source
// is by default considered lower priority than all mirrors. Other cluster configuration,
// including (but not limited to) other repositoryDigestMirrors objects,
// may impact the exact order mirrors are contacted in, or some mirrors may be contacted
// in parallel, so this should be considered a preference rather than a guarantee of ordering.
// +optional
Mirrors []string `json:"mirrors"`
}
RepositoryDigestMirrors holds cluster-wide information about how to handle mirros in the registries config. Note: the mirrors only work when pulling the images that are referenced by their digests.
func (*RepositoryDigestMirrors) DeepCopy ¶
func (in *RepositoryDigestMirrors) DeepCopy() *RepositoryDigestMirrors
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryDigestMirrors.
func (*RepositoryDigestMirrors) DeepCopyInto ¶
func (in *RepositoryDigestMirrors) DeepCopyInto(out *RepositoryDigestMirrors)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (RepositoryDigestMirrors) OpenAPIModelName ¶
func (in RepositoryDigestMirrors) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (RepositoryDigestMirrors) SwaggerDoc ¶
func (RepositoryDigestMirrors) SwaggerDoc() map[string]string
type RevisionName ¶
type RevisionName string
RevisionName represents the name of a revision. The name must be between 1 and 255 characters long. +kubebuilder:validation:MinLength=1 +kubebuilder:validation:MaxLength=255
type StaticPodOperatorStatus ¶
type StaticPodOperatorStatus struct {
OperatorStatus `json:",inline"`
// latestAvailableDeploymentGeneration is the deploymentID of the most recent deployment
LatestAvailableDeploymentGeneration int32 `json:"latestAvailableDeploymentGeneration"`
// nodeStatuses track the deployment values and errors across individual nodes
NodeStatuses []NodeStatus `json:"nodeStatuses"`
}
StaticPodOperatorStatus is status for controllers that manage static pods. There are different needs because individual node status must be tracked. DEPRECATED: Use v1.StaticPodOperatorStatus instead
func (*StaticPodOperatorStatus) DeepCopy ¶
func (in *StaticPodOperatorStatus) DeepCopy() *StaticPodOperatorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StaticPodOperatorStatus.
func (*StaticPodOperatorStatus) DeepCopyInto ¶
func (in *StaticPodOperatorStatus) DeepCopyInto(out *StaticPodOperatorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (StaticPodOperatorStatus) OpenAPIModelName ¶
func (in StaticPodOperatorStatus) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (StaticPodOperatorStatus) SwaggerDoc ¶
func (StaticPodOperatorStatus) SwaggerDoc() map[string]string
type VersionAvailability ¶
type VersionAvailability struct {
// version is the level this availability applies to
Version string `json:"version"`
// updatedReplicas indicates how many replicas are at the desired state
UpdatedReplicas int32 `json:"updatedReplicas"`
// readyReplicas indicates how many replicas are ready and at the desired state
ReadyReplicas int32 `json:"readyReplicas"`
// errors indicates what failures are associated with the operator trying to manage this version
Errors []string `json:"errors"`
// generations allows an operator to track what the generation of "important" resources was the last time we updated them
Generations []GenerationHistory `json:"generations"`
}
VersionAvailability gives information about the synchronization and operational status of a particular version of the component DEPRECATED: Use fields in v1.OperatorStatus instead
func (*VersionAvailability) DeepCopy ¶
func (in *VersionAvailability) DeepCopy() *VersionAvailability
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VersionAvailability.
func (*VersionAvailability) DeepCopyInto ¶
func (in *VersionAvailability) DeepCopyInto(out *VersionAvailability)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VersionAvailability) OpenAPIModelName ¶
func (in VersionAvailability) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (VersionAvailability) SwaggerDoc ¶
func (VersionAvailability) SwaggerDoc() map[string]string