Documentation ¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Actions
- type AfterCompletion
- type BackupStatus
- type BeforeEnable
- type BlockingCR
- type ClusterGroupUpgrade
- type ClusterGroupUpgradeList
- type ClusterGroupUpgradeSpec
- type ClusterGroupUpgradeStatus
- type ClusterRemediationProgress
- type ClusterState
- type ManagedPolicyForUpgrade
- type ManifestWorkStatus
- type NamespacedCR
- type OperatorUpgradeSpec
- type PlatformPreCachingSpec
- type PolicyStatus
- type PreCachingConfig
- type PreCachingConfigCR
- type PreCachingConfigList
- type PreCachingConfigSpec
- type PrecachingSpec
- type PrecachingStatus
- type RemediationStrategySpec
- type RolloutType
- type UpgradeStatus
Constants ¶
const ( NotStarted = "NotStarted" InProgress = "InProgress" Completed = "Completed" )
ClusterRemediationProgress possible states
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var BatchTimeoutAction = struct { Continue string Abort string }{ Continue: "Continue", Abort: "Abort", }
BatchTimeoutAction selections
var RolloutTypes = struct { ManifestWork RolloutType Policy RolloutType }{ ManifestWork: "ManifestWork", Policy: "Policy", }
RolloutTypes define the supported rollout types
var SchemeGroupVersion = schema.GroupVersion{Group: clustergroupupgrades.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Actions ¶
type Actions struct { BeforeEnable *BeforeEnable `json:"beforeEnable,omitempty"` AfterCompletion *AfterCompletion `json:"afterCompletion,omitempty"` }
Actions defines the actions to be done either before or after the managedPolicies are remediated
func (*Actions) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Actions.
func (*Actions) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AfterCompletion ¶
type AfterCompletion struct { // This field defines a map of key/value pairs that identify the cluster labels // to be added to the defined clusters. AddClusterLabels map[string]string `json:"addClusterLabels,omitempty"` // This field defines a map of key/value pairs that identify the cluster labels // to be deleted for the defined clusters. // Deprecated: Use RemoveClusterLabels instead. DeleteClusterLabels map[string]string `json:"deleteClusterLabels,omitempty"` // This field defines a list of labels to be removed for the defined clusters. RemoveClusterLabels []string `json:"removeClusterLabels,omitempty"` // This field defines a map of key/value pairs that identify the cluster annotations // to be added or updated to the defined clusters. AddClusterAnnotations map[string]string `json:"addClusterAnnotations,omitempty"` // This field defines a list of annotations to be removed for the defined clusters. RemoveClusterAnnotations []string `json:"removeClusterAnnotations,omitempty"` // This field defines whether clean up the resources created for upgrade //+kubebuilder:default=true DeleteObjects *bool `json:"deleteObjects,omitempty"` }
AfterCompletion defines the actions to be done after upgrade is completed
func (*AfterCompletion) DeepCopy ¶
func (in *AfterCompletion) DeepCopy() *AfterCompletion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AfterCompletion.
func (*AfterCompletion) DeepCopyInto ¶
func (in *AfterCompletion) DeepCopyInto(out *AfterCompletion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupStatus ¶
type BackupStatus struct { StartedAt metav1.Time `json:"startedAt,omitempty"` Status map[string]string `json:"status,omitempty"` //+kubebuilder:deprecatedversion:warning="BackupStatus.Clusters is deprecated" Clusters []string `json:"clusters,omitempty"` }
BackupStatus defines the observed backup status
func (*BackupStatus) DeepCopy ¶
func (in *BackupStatus) DeepCopy() *BackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStatus.
func (*BackupStatus) DeepCopyInto ¶
func (in *BackupStatus) DeepCopyInto(out *BackupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BeforeEnable ¶
type BeforeEnable struct { // This field defines a map of key/value pairs that identify the cluster labels // to be added or updated to the defined clusters. AddClusterLabels map[string]string `json:"addClusterLabels,omitempty"` // This field defines a map of key/value pairs that identify the cluster labels // to be deleted for the defined clusters. // Deprecated: Use RemoveClusterLabels instead. DeleteClusterLabels map[string]string `json:"deleteClusterLabels,omitempty"` // This field defines a list of labels to be removed for the defined clusters. RemoveClusterLabels []string `json:"removeClusterLabels,omitempty"` // This field defines a map of key/value pairs that identify the cluster annotations // to be added or updated to the defined clusters. AddClusterAnnotations map[string]string `json:"addClusterAnnotations,omitempty"` // This field defines a list of annotations to be removed for the defined clusters. RemoveClusterAnnotations []string `json:"removeClusterAnnotations,omitempty"` }
BeforeEnable defines the actions to be done before starting upgrade
func (*BeforeEnable) DeepCopy ¶
func (in *BeforeEnable) DeepCopy() *BeforeEnable
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BeforeEnable.
func (*BeforeEnable) DeepCopyInto ¶
func (in *BeforeEnable) DeepCopyInto(out *BeforeEnable)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BlockingCR ¶
type BlockingCR NamespacedCR
BlockingCR defines the Upgrade CRs that block the current CR from running if not completed
func (*BlockingCR) DeepCopy ¶
func (in *BlockingCR) DeepCopy() *BlockingCR
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BlockingCR.
func (*BlockingCR) DeepCopyInto ¶
func (in *BlockingCR) DeepCopyInto(out *BlockingCR)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterGroupUpgrade ¶
type ClusterGroupUpgrade struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClusterGroupUpgradeSpec `json:"spec,omitempty"` Status ClusterGroupUpgradeStatus `json:"status,omitempty"` }
ClusterGroupUpgrade is the Schema for the ClusterGroupUpgrades API +operator-sdk:csv:customresourcedefinitions:displayName="Cluster Group Upgrade",resources={{Namespace, v1},{Deployment,apps/v1}}
func (*ClusterGroupUpgrade) DeepCopy ¶
func (in *ClusterGroupUpgrade) DeepCopy() *ClusterGroupUpgrade
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroupUpgrade.
func (*ClusterGroupUpgrade) DeepCopyInto ¶
func (in *ClusterGroupUpgrade) DeepCopyInto(out *ClusterGroupUpgrade)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterGroupUpgrade) DeepCopyObject ¶
func (in *ClusterGroupUpgrade) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ClusterGroupUpgrade) RolloutType ¶
func (cgu ClusterGroupUpgrade) RolloutType() RolloutType
RolloutType returns the rollout type based on the spec content
type ClusterGroupUpgradeList ¶
type ClusterGroupUpgradeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterGroupUpgrade `json:"items"` }
ClusterGroupUpgradeList contains a list of ClusterGroupUpgrade
func (*ClusterGroupUpgradeList) DeepCopy ¶
func (in *ClusterGroupUpgradeList) DeepCopy() *ClusterGroupUpgradeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroupUpgradeList.
func (*ClusterGroupUpgradeList) DeepCopyInto ¶
func (in *ClusterGroupUpgradeList) DeepCopyInto(out *ClusterGroupUpgradeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterGroupUpgradeList) DeepCopyObject ¶
func (in *ClusterGroupUpgradeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterGroupUpgradeSpec ¶
type ClusterGroupUpgradeSpec struct { // This field determines whether the cluster would be running a backup prior to the upgrade. // Deprecated: Use lcm.openshift.io/ImageBasedGroupUpgrade instead for SNO upgrades with built-in backup/rollback functionality //+kubebuilder:deprecatedversion:warning="ClusterGroupUpgradeSpec.Backup is deprecated, use lcm.openshift.io/ImageBasedGroupUpgrade instead for SNO upgrades with built-in backup/rollback functionality" //+kubebuilder:default=false //+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Backup",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:bool"} Backup bool `json:"backup,omitempty"` // This field determines whether container image pre-caching will be done on all the clusters // matching the selector. // If required, the pre-caching process starts immediately on all clusters irrespectively of // the value of the "enable" flag //+kubebuilder:default=false //+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="PreCaching",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:bool"} PreCaching bool `json:"preCaching,omitempty"` // This field specifies a reference to a pre-caching config custom resource that contains the additional // pre-caching configurations. //+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="PreCachingConfigRef",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"} PreCachingConfigRef PreCachingConfigCR `json:"preCachingConfigRef,omitempty"` // This field determines when the upgrade starts. While false, the upgrade doesn't start. The policies, // placement rules and placement bindings are created, but clusters are not added to the placement rule. // Once set to true, the clusters start being upgraded, one batch at a time. //+kubebuilder:default=true //+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Enable",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:bool"} Enable *bool `json:"enable,omitempty"` //+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Clusters",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"} Clusters []string `json:"clusters,omitempty"` // This field holds a label common to multiple clusters that will be updated. // The expected format is as follows: // clusterSelector: // - label1Name=label1Value // - label2Name=label2Value // If the value is empty, then the expected format is: // clusterSelector: // - label1Name // All the clusters matching the labels specified in clusterSelector will be included // in the update plan. // Deprecated: Use ClusterLabelSelectors instead //+kubebuilder:deprecatedversion:warning="ClusterGroupUpgradeSpec.ClusterSelector is deprecated, use ClusterLabelSelectors instead" //+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Cluster Selector",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"} ClusterSelector []string `json:"clusterSelector,omitempty"` // This field holds a list of expressions or labels that will be used to determine what clusters to include in the operation. // The expected format is as follows: // clusterLabelSelectors: // - matchExpressions: // - key: label1 // operator: In // values: // - value1a // - value1b // - matchLabels: // label2: value2 // - matchExpressions: // - key: label3 // operator: In // values: // - value3 // matchLabels: // label4: value4 //+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Cluster Label Selectors",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"} ClusterLabelSelectors []metav1.LabelSelector `json:"clusterLabelSelectors,omitempty"` //+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Remediation Strategy",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"} RemediationStrategy *RemediationStrategySpec `json:"remediationStrategy"` //+kubebuilder:validation:Optional //+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Managed Policies",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"} ManagedPolicies []string `json:"managedPolicies,omitempty"` //+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Manifest Work Templates",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"} //+kubebuilder:validation:Optional ManifestWorkTemplates []string `json:"manifestWorkTemplates"` //+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Blocking CRs",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"} BlockingCRs []BlockingCR `json:"blockingCRs,omitempty"` //+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Actions",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"} Actions Actions `json:"actions,omitempty"` // The Batch Timeout Action can be specified to control what happens when a batch times out. The default value is `Continue`. // The possible values are: // - Continue // - Abort //+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="BatchTimeoutAction",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"} BatchTimeoutAction string `json:"batchTimeoutAction,omitempty"` }
ClusterGroupUpgradeSpec defines the desired state of ClusterGroupUpgrade
func (*ClusterGroupUpgradeSpec) DeepCopy ¶
func (in *ClusterGroupUpgradeSpec) DeepCopy() *ClusterGroupUpgradeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroupUpgradeSpec.
func (*ClusterGroupUpgradeSpec) DeepCopyInto ¶
func (in *ClusterGroupUpgradeSpec) DeepCopyInto(out *ClusterGroupUpgradeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterGroupUpgradeStatus ¶
type ClusterGroupUpgradeStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file // +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Placement Bindings" PlacementBindings []string `json:"placementBindings,omitempty"` // +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Placement Rules" PlacementRules []string `json:"placementRules,omitempty"` // +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Copied Policies" // Deprecated CopiedPolicies []string `json:"copiedPolicies,omitempty"` // +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Conditions" Conditions []metav1.Condition `json:"conditions,omitempty"` // +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Remediation Plan" RemediationPlan [][]string `json:"remediationPlan,omitempty"` // +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Managed Policies Namespace" ManagedPoliciesNs map[string]string `json:"managedPoliciesNs,omitempty"` // +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Safe Resource Names" SafeResourceNames map[string]string `json:"safeResourceNames,omitempty"` // Contains the managed policies (and the namespaces) that have NonCompliant clusters // that require updating. // +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Managed Policies For Upgrade" ManagedPoliciesForUpgrade []ManagedPolicyForUpgrade `json:"managedPoliciesForUpgrade,omitempty"` // +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Managed Policies Compliant Before Upgrade" ManagedPoliciesCompliantBeforeUpgrade []string `json:"managedPoliciesCompliantBeforeUpgrade,omitempty"` // +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Managed Policies Content" ManagedPoliciesContent map[string]string `json:"managedPoliciesContent,omitempty"` // +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Clusters" Clusters []ClusterState `json:"clusters,omitempty"` // +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Status" Status UpgradeStatus `json:"status,omitempty"` // +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Precaching" Precaching *PrecachingStatus `json:"precaching,omitempty"` // +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Backup" Backup *BackupStatus `json:"backup,omitempty"` // +operator-sdk:csv:customresourcedefinitions:type=status,displayName="Computed Maximum Concurrency" ComputedMaxConcurrency int `json:"computedMaxConcurrency,omitempty"` }
ClusterGroupUpgradeStatus defines the observed state of ClusterGroupUpgrade
func (*ClusterGroupUpgradeStatus) DeepCopy ¶
func (in *ClusterGroupUpgradeStatus) DeepCopy() *ClusterGroupUpgradeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroupUpgradeStatus.
func (*ClusterGroupUpgradeStatus) DeepCopyInto ¶
func (in *ClusterGroupUpgradeStatus) DeepCopyInto(out *ClusterGroupUpgradeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterRemediationProgress ¶
type ClusterRemediationProgress struct { // State should be one of the following: NotStarted, InProgress, Completed State string `json:"state,omitempty"` ManifestWorkIndex *int `json:"manifestWorkIndex,omitempty"` PolicyIndex *int `json:"policyIndex,omitempty"` FirstCompliantAt metav1.Time `json:"firstComplaintAt,omitempty"` }
ClusterRemediationProgress stores the remediation progress of a cluster
func (*ClusterRemediationProgress) DeepCopy ¶
func (in *ClusterRemediationProgress) DeepCopy() *ClusterRemediationProgress
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRemediationProgress.
func (*ClusterRemediationProgress) DeepCopyInto ¶
func (in *ClusterRemediationProgress) DeepCopyInto(out *ClusterRemediationProgress)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterState ¶
type ClusterState struct { Name string `json:"name"` State string `json:"state"` CurrentPolicy *PolicyStatus `json:"currentPolicy,omitempty"` CurrentManifestWork *ManifestWorkStatus `json:"currentManifestWork,omitempty"` }
ClusterState defines the final state of a cluster
func (*ClusterState) DeepCopy ¶
func (in *ClusterState) DeepCopy() *ClusterState
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterState.
func (*ClusterState) DeepCopyInto ¶
func (in *ClusterState) DeepCopyInto(out *ClusterState)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagedPolicyForUpgrade ¶
type ManagedPolicyForUpgrade struct { Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` }
ManagedPolicyForUpgrade defines the observed state of a Policy
func (*ManagedPolicyForUpgrade) DeepCopy ¶
func (in *ManagedPolicyForUpgrade) DeepCopy() *ManagedPolicyForUpgrade
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedPolicyForUpgrade.
func (*ManagedPolicyForUpgrade) DeepCopyInto ¶
func (in *ManagedPolicyForUpgrade) DeepCopyInto(out *ManagedPolicyForUpgrade)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManifestWorkStatus ¶
type ManifestWorkStatus struct { Name string `json:"name"` Status mwv1.ManifestResourceStatus `json:"status,omitempty"` }
ManifestWorkStatus defines the status of a certain ManifestWork
func (*ManifestWorkStatus) DeepCopy ¶
func (in *ManifestWorkStatus) DeepCopy() *ManifestWorkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManifestWorkStatus.
func (*ManifestWorkStatus) DeepCopyInto ¶
func (in *ManifestWorkStatus) DeepCopyInto(out *ManifestWorkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamespacedCR ¶
type NamespacedCR struct { Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` }
NamespacedCR defines the name and namespace of a custom resource
func (*NamespacedCR) DeepCopy ¶
func (in *NamespacedCR) DeepCopy() *NamespacedCR
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacedCR.
func (*NamespacedCR) DeepCopyInto ¶
func (in *NamespacedCR) DeepCopyInto(out *NamespacedCR)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OperatorUpgradeSpec ¶
type OperatorUpgradeSpec struct { Channel string `json:"channel,omitempty"` Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` }
OperatorUpgradeSpec defines the configuration of an operator upgrade
func (*OperatorUpgradeSpec) DeepCopy ¶
func (in *OperatorUpgradeSpec) DeepCopy() *OperatorUpgradeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorUpgradeSpec.
func (*OperatorUpgradeSpec) DeepCopyInto ¶
func (in *OperatorUpgradeSpec) DeepCopyInto(out *OperatorUpgradeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PlatformPreCachingSpec ¶
type PlatformPreCachingSpec struct { // Override the pre-cached OpenShift platform image derived by TALM PlatformImage string `json:"platformImage,omitempty"` // Override the pre-cached OLM index images derived by TALM (list of image pull specs) OperatorsIndexes []string `json:"operatorsIndexes,omitempty"` // Override the pre-cached operator packages and channels derived by TALM (list of <package:channel> string entries) OperatorsPackagesAndChannels []string `json:"operatorsPackagesAndChannels,omitempty"` // Override the pre-caching workload image pull spec - typically derived by TALM from the operator // ClusterServiceVersion (csv) object. PreCacheImage string `json:"preCacheImage,omitempty"` }
PlatformPreCachingSpec modify the default pre-caching behavior and values derived by TALM.
func (*PlatformPreCachingSpec) DeepCopy ¶
func (in *PlatformPreCachingSpec) DeepCopy() *PlatformPreCachingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlatformPreCachingSpec.
func (*PlatformPreCachingSpec) DeepCopyInto ¶
func (in *PlatformPreCachingSpec) DeepCopyInto(out *PlatformPreCachingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicyStatus ¶
PolicyStatus defines the status of a certain policy
func (*PolicyStatus) DeepCopy ¶
func (in *PolicyStatus) DeepCopy() *PolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyStatus.
func (*PolicyStatus) DeepCopyInto ¶
func (in *PolicyStatus) DeepCopyInto(out *PolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PreCachingConfig ¶
type PreCachingConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PreCachingConfigSpec `json:"spec,omitempty"` }
PreCachingConfig is the Schema for the precachingconfigs API
func (*PreCachingConfig) DeepCopy ¶
func (in *PreCachingConfig) DeepCopy() *PreCachingConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreCachingConfig.
func (*PreCachingConfig) DeepCopyInto ¶
func (in *PreCachingConfig) DeepCopyInto(out *PreCachingConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PreCachingConfig) DeepCopyObject ¶
func (in *PreCachingConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PreCachingConfigCR ¶
type PreCachingConfigCR NamespacedCR
PreCachingConfigCR defines the reference to the pre-caching config CR
func (*PreCachingConfigCR) DeepCopy ¶
func (in *PreCachingConfigCR) DeepCopy() *PreCachingConfigCR
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreCachingConfigCR.
func (*PreCachingConfigCR) DeepCopyInto ¶
func (in *PreCachingConfigCR) DeepCopyInto(out *PreCachingConfigCR)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PreCachingConfigList ¶
type PreCachingConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PreCachingConfig `json:"items"` }
PreCachingConfigList contains a list of PreCachingConfig
func (*PreCachingConfigList) DeepCopy ¶
func (in *PreCachingConfigList) DeepCopy() *PreCachingConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreCachingConfigList.
func (*PreCachingConfigList) DeepCopyInto ¶
func (in *PreCachingConfigList) DeepCopyInto(out *PreCachingConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PreCachingConfigList) DeepCopyObject ¶
func (in *PreCachingConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PreCachingConfigSpec ¶
type PreCachingConfigSpec struct { // Overrides modify the default pre-caching behaviour and values derived by TALM. Overrides PlatformPreCachingSpec `json:"overrides,omitempty"` // Amount of space required for the pre-caching job SpaceRequired string `json:"spaceRequired,omitempty"` // List of patterns to exclude from pre-caching ExcludePrecachePatterns []string `json:"excludePrecachePatterns,omitempty"` // List of additional image pull specs for the pre-caching job AdditionalImages []string `json:"additionalImages,omitempty"` }
PreCachingConfigSpec defines the desired state of PreCachingConfig
func (*PreCachingConfigSpec) DeepCopy ¶
func (in *PreCachingConfigSpec) DeepCopy() *PreCachingConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreCachingConfigSpec.
func (*PreCachingConfigSpec) DeepCopyInto ¶
func (in *PreCachingConfigSpec) DeepCopyInto(out *PreCachingConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrecachingSpec ¶
type PrecachingSpec struct { PlatformImage string `json:"platformImage,omitempty"` OperatorsIndexes []string `json:"operatorsIndexes,omitempty"` OperatorsPackagesAndChannels []string `json:"operatorsPackagesAndChannels,omitempty"` ExcludePrecachePatterns []string `json:"excludePrecachePatterns,omitempty"` SpaceRequired string `json:"spaceRequired,omitempty"` AdditionalImages []string `json:"additionalImages,omitempty"` }
PrecachingSpec defines the pre-caching software spec derived from policies
func (*PrecachingSpec) DeepCopy ¶
func (in *PrecachingSpec) DeepCopy() *PrecachingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrecachingSpec.
func (*PrecachingSpec) DeepCopyInto ¶
func (in *PrecachingSpec) DeepCopyInto(out *PrecachingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrecachingStatus ¶
type PrecachingStatus struct { Spec *PrecachingSpec `json:"spec,omitempty"` Status map[string]string `json:"status,omitempty"` //+kubebuilder:deprecatedversion:warning="PrecachingStatus.Clusters is deprecated" Clusters []string `json:"clusters,omitempty"` }
PrecachingStatus defines the observed pre-caching status
func (*PrecachingStatus) DeepCopy ¶
func (in *PrecachingStatus) DeepCopy() *PrecachingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrecachingStatus.
func (*PrecachingStatus) DeepCopyInto ¶
func (in *PrecachingStatus) DeepCopyInto(out *PrecachingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RemediationStrategySpec ¶
type RemediationStrategySpec struct { // Canaries defines the list of managed clusters that should be remediated first when remediateAction is set to enforce Canaries []string `json:"canaries,omitempty"` //kubebuilder:validation:Minimum=1 MaxConcurrency int `json:"maxConcurrency"` //+kubebuilder:default=240 Timeout int `json:"timeout,omitempty"` }
RemediationStrategySpec defines the remediation policy
func (*RemediationStrategySpec) DeepCopy ¶
func (in *RemediationStrategySpec) DeepCopy() *RemediationStrategySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemediationStrategySpec.
func (*RemediationStrategySpec) DeepCopyInto ¶
func (in *RemediationStrategySpec) DeepCopyInto(out *RemediationStrategySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UpgradeStatus ¶
type UpgradeStatus struct { StartedAt metav1.Time `json:"startedAt,omitempty"` CompletedAt metav1.Time `json:"completedAt,omitempty"` CurrentBatch int `json:"currentBatch,omitempty"` CurrentBatchStartedAt metav1.Time `json:"currentBatchStartedAt,omitempty"` CurrentBatchRemediationProgress map[string]*ClusterRemediationProgress `json:"currentBatchRemediationProgress,omitempty"` }
UpgradeStatus defines the observed state of the upgrade
func (*UpgradeStatus) DeepCopy ¶
func (in *UpgradeStatus) DeepCopy() *UpgradeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpgradeStatus.
func (*UpgradeStatus) DeepCopyInto ¶
func (in *UpgradeStatus) DeepCopyInto(out *UpgradeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.