Documentation
¶
Overview ¶
Package v1alpha3 contains the v1alpha3 API implementation. +k8s:conversion-gen=sigs.k8s.io/cluster-api/api/core/v1beta2
Deprecated: This package will be removed in one of the next releases.
Package v1alpha3 contains API Schema definitions for the cluster v1alpha3 API group +kubebuilder:object:generate=true +groupName=cluster.x-k8s.io
Index ¶
- Constants
- Variables
- func Convert_v1_Condition_To_v1alpha3_Condition(_ *metav1.Condition, _ *Condition, _ apimachineryconversion.Scope) error
- func Convert_v1alpha3_APIEndpoint_To_v1beta2_APIEndpoint(in *APIEndpoint, out *v1beta2.APIEndpoint, s conversion.Scope) error
- func Convert_v1alpha3_Bootstrap_To_v1beta2_Bootstrap(in *Bootstrap, out *clusterv1.Bootstrap, s apimachineryconversion.Scope) error
- func Convert_v1alpha3_ClusterList_To_v1beta2_ClusterList(in *ClusterList, out *v1beta2.ClusterList, s conversion.Scope) error
- func Convert_v1alpha3_ClusterNetwork_To_v1beta2_ClusterNetwork(in *ClusterNetwork, out *clusterv1.ClusterNetwork, ...) error
- func Convert_v1alpha3_ClusterSpec_To_v1beta2_ClusterSpec(in *ClusterSpec, out *clusterv1.ClusterSpec, s apimachineryconversion.Scope) error
- func Convert_v1alpha3_ClusterStatus_To_v1beta2_ClusterStatus(in *ClusterStatus, out *clusterv1.ClusterStatus, ...) error
- func Convert_v1alpha3_Cluster_To_v1beta2_Cluster(in *Cluster, out *v1beta2.Cluster, s conversion.Scope) error
- func Convert_v1alpha3_Condition_To_v1_Condition(_ *Condition, _ *metav1.Condition, _ apimachineryconversion.Scope) error
- func Convert_v1alpha3_Condition_To_v1beta2_Condition(in *Condition, out *v1beta2.Condition, s conversion.Scope) error
- func Convert_v1alpha3_Conditions_To_v1beta2_Deprecated_V1Beta1_Conditions(in *Conditions, out *clusterv1.Conditions)
- func Convert_v1alpha3_MachineAddress_To_v1beta2_MachineAddress(in *MachineAddress, out *v1beta2.MachineAddress, s conversion.Scope) error
- func Convert_v1alpha3_MachineDeploymentList_To_v1beta2_MachineDeploymentList(in *MachineDeploymentList, out *v1beta2.MachineDeploymentList, ...) error
- func Convert_v1alpha3_MachineDeploymentSpec_To_v1beta2_MachineDeploymentSpec(in *MachineDeploymentSpec, out *clusterv1.MachineDeploymentSpec, ...) error
- func Convert_v1alpha3_MachineDeploymentStatus_To_v1beta2_MachineDeploymentStatus(in *MachineDeploymentStatus, out *clusterv1.MachineDeploymentStatus, ...) error
- func Convert_v1alpha3_MachineDeployment_To_v1beta2_MachineDeployment(in *MachineDeployment, out *v1beta2.MachineDeployment, s conversion.Scope) error
- func Convert_v1alpha3_MachineHealthCheckList_To_v1beta2_MachineHealthCheckList(in *MachineHealthCheckList, out *v1beta2.MachineHealthCheckList, ...) error
- func Convert_v1alpha3_MachineHealthCheckSpec_To_v1beta2_MachineHealthCheckSpec(in *MachineHealthCheckSpec, out *clusterv1.MachineHealthCheckSpec, ...) error
- func Convert_v1alpha3_MachineHealthCheckStatus_To_v1beta2_MachineHealthCheckStatus(in *MachineHealthCheckStatus, out *v1beta2.MachineHealthCheckStatus, ...) error
- func Convert_v1alpha3_MachineHealthCheck_To_v1beta2_MachineHealthCheck(in *MachineHealthCheck, out *v1beta2.MachineHealthCheck, s conversion.Scope) error
- func Convert_v1alpha3_MachineList_To_v1beta2_MachineList(in *MachineList, out *v1beta2.MachineList, s conversion.Scope) error
- func Convert_v1alpha3_MachinePoolList_To_v1beta2_MachinePoolList(in *MachinePoolList, out *v1beta2.MachinePoolList, s conversion.Scope) error
- func Convert_v1alpha3_MachinePoolSpec_To_v1beta2_MachinePoolSpec(in *MachinePoolSpec, out *clusterv1.MachinePoolSpec, ...) error
- func Convert_v1alpha3_MachinePoolStatus_To_v1beta2_MachinePoolStatus(in *MachinePoolStatus, out *clusterv1.MachinePoolStatus, ...) error
- func Convert_v1alpha3_MachinePool_To_v1beta2_MachinePool(in *MachinePool, out *clusterv1.MachinePool, s apimachineryconversion.Scope) error
- func Convert_v1alpha3_MachineRollingUpdateDeployment_To_v1beta2_MachineDeploymentRolloutStrategyRollingUpdate(in *MachineRollingUpdateDeployment, ...) error
- func Convert_v1alpha3_MachineSetList_To_v1beta2_MachineSetList(in *MachineSetList, out *v1beta2.MachineSetList, s conversion.Scope) error
- func Convert_v1alpha3_MachineSetSpec_To_v1beta2_MachineSetSpec(in *MachineSetSpec, out *clusterv1.MachineSetSpec, ...) error
- func Convert_v1alpha3_MachineSetStatus_To_v1beta2_MachineSetStatus(in *MachineSetStatus, out *clusterv1.MachineSetStatus, ...) error
- func Convert_v1alpha3_MachineSet_To_v1beta2_MachineSet(in *MachineSet, out *v1beta2.MachineSet, s conversion.Scope) error
- func Convert_v1alpha3_MachineSpec_To_v1beta2_MachineSpec(in *MachineSpec, out *clusterv1.MachineSpec, s apimachineryconversion.Scope) error
- func Convert_v1alpha3_MachineStatus_To_v1beta2_MachineStatus(in *MachineStatus, out *clusterv1.MachineStatus, ...) error
- func Convert_v1alpha3_MachineTemplateSpec_To_v1beta2_MachineTemplateSpec(in *MachineTemplateSpec, out *v1beta2.MachineTemplateSpec, s conversion.Scope) error
- func Convert_v1alpha3_Machine_To_v1beta2_Machine(in *Machine, out *v1beta2.Machine, s conversion.Scope) error
- func Convert_v1alpha3_NetworkRanges_To_v1beta2_NetworkRanges(in *NetworkRanges, out *v1beta2.NetworkRanges, s conversion.Scope) error
- func Convert_v1alpha3_ObjectMeta_To_v1beta2_ObjectMeta(in *ObjectMeta, out *clusterv1.ObjectMeta, s apimachineryconversion.Scope) error
- func Convert_v1beta2_APIEndpoint_To_v1alpha3_APIEndpoint(in *v1beta2.APIEndpoint, out *APIEndpoint, s conversion.Scope) error
- func Convert_v1beta2_Bootstrap_To_v1alpha3_Bootstrap(in *clusterv1.Bootstrap, out *Bootstrap, s apimachineryconversion.Scope) error
- func Convert_v1beta2_ClusterList_To_v1alpha3_ClusterList(in *v1beta2.ClusterList, out *ClusterList, s conversion.Scope) error
- func Convert_v1beta2_ClusterNetwork_To_v1alpha3_ClusterNetwork(in *clusterv1.ClusterNetwork, out *ClusterNetwork, ...) error
- func Convert_v1beta2_ClusterSpec_To_v1alpha3_ClusterSpec(in *clusterv1.ClusterSpec, out *ClusterSpec, s apimachineryconversion.Scope) error
- func Convert_v1beta2_ClusterStatus_To_v1alpha3_ClusterStatus(in *clusterv1.ClusterStatus, out *ClusterStatus, ...) error
- func Convert_v1beta2_Cluster_To_v1alpha3_Cluster(in *v1beta2.Cluster, out *Cluster, s conversion.Scope) error
- func Convert_v1beta2_Condition_To_v1alpha3_Condition(in *v1beta2.Condition, out *Condition, s conversion.Scope) error
- func Convert_v1beta2_Deprecated_V1Beta1_Conditions_To_v1alpha3_Conditions(in *clusterv1.Conditions, out *Conditions)
- func Convert_v1beta2_MachineAddress_To_v1alpha3_MachineAddress(in *v1beta2.MachineAddress, out *MachineAddress, s conversion.Scope) error
- func Convert_v1beta2_MachineDeploymentList_To_v1alpha3_MachineDeploymentList(in *v1beta2.MachineDeploymentList, out *MachineDeploymentList, ...) error
- func Convert_v1beta2_MachineDeploymentRolloutStrategyRollingUpdate_To_v1alpha3_MachineRollingUpdateDeployment(in *clusterv1.MachineDeploymentRolloutStrategyRollingUpdate, ...) error
- func Convert_v1beta2_MachineDeploymentSpec_To_v1alpha3_MachineDeploymentSpec(in *clusterv1.MachineDeploymentSpec, out *MachineDeploymentSpec, ...) error
- func Convert_v1beta2_MachineDeploymentStatus_To_v1alpha3_MachineDeploymentStatus(in *clusterv1.MachineDeploymentStatus, out *MachineDeploymentStatus, ...) error
- func Convert_v1beta2_MachineDeployment_To_v1alpha3_MachineDeployment(in *v1beta2.MachineDeployment, out *MachineDeployment, s conversion.Scope) error
- func Convert_v1beta2_MachineHealthCheckList_To_v1alpha3_MachineHealthCheckList(in *v1beta2.MachineHealthCheckList, out *MachineHealthCheckList, ...) error
- func Convert_v1beta2_MachineHealthCheckSpec_To_v1alpha3_MachineHealthCheckSpec(in *clusterv1.MachineHealthCheckSpec, out *MachineHealthCheckSpec, ...) error
- func Convert_v1beta2_MachineHealthCheckStatus_To_v1alpha3_MachineHealthCheckStatus(in *clusterv1.MachineHealthCheckStatus, out *MachineHealthCheckStatus, ...) error
- func Convert_v1beta2_MachineHealthCheck_To_v1alpha3_MachineHealthCheck(in *v1beta2.MachineHealthCheck, out *MachineHealthCheck, s conversion.Scope) error
- func Convert_v1beta2_MachineList_To_v1alpha3_MachineList(in *v1beta2.MachineList, out *MachineList, s conversion.Scope) error
- func Convert_v1beta2_MachinePoolList_To_v1alpha3_MachinePoolList(in *v1beta2.MachinePoolList, out *MachinePoolList, s conversion.Scope) error
- func Convert_v1beta2_MachinePoolSpec_To_v1alpha3_MachinePoolSpec(in *v1beta2.MachinePoolSpec, out *MachinePoolSpec, s conversion.Scope) error
- func Convert_v1beta2_MachinePoolStatus_To_v1alpha3_MachinePoolStatus(in *clusterv1.MachinePoolStatus, out *MachinePoolStatus, ...) error
- func Convert_v1beta2_MachinePool_To_v1alpha3_MachinePool(in *clusterv1.MachinePool, out *MachinePool, s apimachineryconversion.Scope) error
- func Convert_v1beta2_MachineSetList_To_v1alpha3_MachineSetList(in *v1beta2.MachineSetList, out *MachineSetList, s conversion.Scope) error
- func Convert_v1beta2_MachineSetSpec_To_v1alpha3_MachineSetSpec(in *clusterv1.MachineSetSpec, out *MachineSetSpec, ...) error
- func Convert_v1beta2_MachineSetStatus_To_v1alpha3_MachineSetStatus(in *clusterv1.MachineSetStatus, out *MachineSetStatus, ...) error
- func Convert_v1beta2_MachineSet_To_v1alpha3_MachineSet(in *v1beta2.MachineSet, out *MachineSet, s conversion.Scope) error
- func Convert_v1beta2_MachineSpec_To_v1alpha3_MachineSpec(in *clusterv1.MachineSpec, out *MachineSpec, s apimachineryconversion.Scope) error
- func Convert_v1beta2_MachineStatus_To_v1alpha3_MachineStatus(in *clusterv1.MachineStatus, out *MachineStatus, ...) error
- func Convert_v1beta2_MachineTemplateSpec_To_v1alpha3_MachineTemplateSpec(in *v1beta2.MachineTemplateSpec, out *MachineTemplateSpec, s conversion.Scope) error
- func Convert_v1beta2_Machine_To_v1alpha3_Machine(in *v1beta2.Machine, out *Machine, s conversion.Scope) error
- func Convert_v1beta2_NetworkRanges_To_v1alpha3_NetworkRanges(in *v1beta2.NetworkRanges, out *NetworkRanges, s conversion.Scope) error
- func Convert_v1beta2_ObjectMeta_To_v1alpha3_ObjectMeta(in *v1beta2.ObjectMeta, out *ObjectMeta, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func SetAPIVersionGetter(f func(gk schema.GroupKind) (string, error))
- type APIEndpoint
- type Bootstrap
- type Cluster
- func (dst *Cluster) ConvertFrom(srcRaw conversion.Hub) error
- func (src *Cluster) ConvertTo(dstRaw conversion.Hub) error
- func (in *Cluster) DeepCopy() *Cluster
- func (in *Cluster) DeepCopyInto(out *Cluster)
- func (in *Cluster) DeepCopyObject() runtime.Object
- func (c *Cluster) GetConditions() Conditions
- func (c *Cluster) SetConditions(conditions Conditions)
- type ClusterList
- type ClusterNetwork
- type ClusterPhase
- type ClusterSpec
- type ClusterStatus
- type Condition
- type ConditionSeverity
- type ConditionType
- type Conditions
- type FailureDomainSpec
- type FailureDomains
- type Machinedeprecated
- func (dst *Machine) ConvertFrom(srcRaw conversion.Hub) error
- func (src *Machine) ConvertTo(dstRaw conversion.Hub) error
- func (in *Machine) DeepCopy() *Machine
- func (in *Machine) DeepCopyInto(out *Machine)
- func (in *Machine) DeepCopyObject() runtime.Object
- func (m *Machine) GetConditions() Conditions
- func (m *Machine) SetConditions(conditions Conditions)
- type MachineAddress
- type MachineAddressType
- type MachineAddresses
- type MachineDeploymentdeprecated
- func (dst *MachineDeployment) ConvertFrom(srcRaw conversion.Hub) error
- func (src *MachineDeployment) ConvertTo(dstRaw conversion.Hub) error
- func (in *MachineDeployment) DeepCopy() *MachineDeployment
- func (in *MachineDeployment) DeepCopyInto(out *MachineDeployment)
- func (in *MachineDeployment) DeepCopyObject() runtime.Object
- type MachineDeploymentListdeprecated
- type MachineDeploymentPhase
- type MachineDeploymentSpec
- type MachineDeploymentStatus
- type MachineDeploymentStrategy
- type MachineDeploymentStrategyType
- type MachineHealthCheckdeprecated
- func (dst *MachineHealthCheck) ConvertFrom(srcRaw conversion.Hub) error
- func (src *MachineHealthCheck) ConvertTo(dstRaw conversion.Hub) error
- func (in *MachineHealthCheck) DeepCopy() *MachineHealthCheck
- func (in *MachineHealthCheck) DeepCopyInto(out *MachineHealthCheck)
- func (in *MachineHealthCheck) DeepCopyObject() runtime.Object
- func (m *MachineHealthCheck) GetConditions() Conditions
- func (m *MachineHealthCheck) SetConditions(conditions Conditions)
- type MachineHealthCheckListdeprecated
- type MachineHealthCheckSpec
- type MachineHealthCheckStatus
- type MachineListdeprecated
- type MachinePhase
- type MachinePooldeprecated
- func (dst *MachinePool) ConvertFrom(srcRaw conversion.Hub) error
- func (src *MachinePool) ConvertTo(dstRaw conversion.Hub) error
- func (in *MachinePool) DeepCopy() *MachinePool
- func (in *MachinePool) DeepCopyInto(out *MachinePool)
- func (in *MachinePool) DeepCopyObject() runtime.Object
- func (m *MachinePool) GetConditions() Conditions
- func (m *MachinePool) SetConditions(conditions Conditions)
- type MachinePoolListdeprecated
- type MachinePoolPhase
- type MachinePoolSpec
- type MachinePoolStatus
- type MachineRollingUpdateDeployment
- type MachineSetdeprecated
- func (dst *MachineSet) ConvertFrom(srcRaw conversion.Hub) error
- func (src *MachineSet) ConvertTo(dstRaw conversion.Hub) error
- func (in *MachineSet) DeepCopy() *MachineSet
- func (in *MachineSet) DeepCopyInto(out *MachineSet)
- func (in *MachineSet) DeepCopyObject() runtime.Object
- func (m *MachineSet) Validate() field.ErrorList
- type MachineSetDeletePolicy
- type MachineSetListdeprecated
- type MachineSetSpec
- type MachineSetStatus
- type MachineSpec
- type MachineStatus
- type MachineTemplateSpec
- type NetworkRanges
- type ObjectMeta
- type UnhealthyCondition
Constants ¶
const ( // ClusterPhasePending is the first state a Cluster is assigned by // Cluster API Cluster controller after being created. ClusterPhasePending = ClusterPhase("Pending") // ClusterPhaseProvisioning is the state when the Cluster has a provider infrastructure // object associated and can start provisioning. ClusterPhaseProvisioning = ClusterPhase("Provisioning") // ClusterPhaseProvisioned is the state when its // infrastructure has been created and configured. ClusterPhaseProvisioned = ClusterPhase("Provisioned") // ClusterPhaseDeleting is the Cluster state when a delete // request has been sent to the API Server, // but its infrastructure has not yet been fully deleted. ClusterPhaseDeleting = ClusterPhase("Deleting") // ClusterPhaseFailed is the Cluster state when the system // might require user intervention. ClusterPhaseFailed = ClusterPhase("Failed") // ClusterPhaseUnknown is returned if the Cluster state cannot be determined. ClusterPhaseUnknown = ClusterPhase("Unknown") )
const ( // ClusterLabelName is the label set on machines linked to a cluster and // external objects(bootstrap and infrastructure providers). ClusterLabelName = "cluster.x-k8s.io/cluster-name" // ProviderLabelName is the label set on components in the provider manifest. // This label allows to easily identify all the components belonging to a provider; the clusterctl // tool uses this label for implementing provider's lifecycle operations. ProviderLabelName = "cluster.x-k8s.io/provider" // ClusterNameAnnotation is the annotation set on nodes identifying the name of the cluster the node belongs to. ClusterNameAnnotation = "cluster.x-k8s.io/cluster-name" // ClusterNamespaceAnnotation is the annotation set on nodes identifying the namespace of the cluster the node belongs to. ClusterNamespaceAnnotation = "cluster.x-k8s.io/cluster-namespace" // MachineAnnotation is the annotation set on nodes identifying the machine the node belongs to. MachineAnnotation = "cluster.x-k8s.io/machine" // OwnerKindAnnotation is the annotation set on nodes identifying the owner kind. OwnerKindAnnotation = "cluster.x-k8s.io/owner-kind" // OwnerNameAnnotation is the annotation set on nodes identifying the owner name. OwnerNameAnnotation = "cluster.x-k8s.io/owner-name" // PausedAnnotation is an annotation that can be applied to any Cluster API // object to prevent a controller from processing a resource. // // Controllers working with Cluster API objects must check the existence of this annotation // on the reconciled object. PausedAnnotation = "cluster.x-k8s.io/paused" // DeleteMachineAnnotation marks control plane and worker nodes that will be given priority for deletion // when KCP or a machineset scales down. This annotation is given top priority on all delete policies. DeleteMachineAnnotation = "cluster.x-k8s.io/delete-machine" // TemplateClonedFromNameAnnotation is the infrastructure machine annotation that stores the name of the infrastructure template resource // that was cloned for the machine. This annotation is set only during cloning a template. Older/adopted machines will not have this annotation. TemplateClonedFromNameAnnotation = "cluster.x-k8s.io/cloned-from-name" // TemplateClonedFromGroupKindAnnotation is the infrastructure machine annotation that stores the group-kind of the infrastructure template resource // that was cloned for the machine. This annotation is set only during cloning a template. Older/adopted machines will not have this annotation. TemplateClonedFromGroupKindAnnotation = "cluster.x-k8s.io/cloned-from-groupkind" // MachineSkipRemediationAnnotation is the annotation used to mark the machines that should not be considered for remediation by MachineHealthCheck reconciler. MachineSkipRemediationAnnotation = "cluster.x-k8s.io/skip-remediation" // ClusterSecretType defines the type of secret created by core components. ClusterSecretType corev1.SecretType = "cluster.x-k8s.io/secret" //nolint:gosec )
const ( // DeletingReason (Severity=Info) documents an condition not in Status=True because the underlying object it is currently being deleted. DeletingReason = "Deleting" // DeletionFailedReason (Severity=Warning) documents an condition not in Status=True because the underlying object // encountered problems during deletion. This is a warning because the reconciler will retry deletion. DeletionFailedReason = "DeletionFailed" // DeletedReason (Severity=Info) documents an condition not in Status=True because the underlying object was deleted. DeletedReason = "Deleted" )
Common ConditionReason used by Cluster API objects.
const ( // ControlPlaneReadyCondition reports the ready condition from the control plane object defined for this cluster. // This condition is mirrored from the Ready condition in the control plane ref object, and // the absence of this condition might signal problems in the reconcile external loops or the fact that // the control plane provider does not implement the Ready condition yet. ControlPlaneReadyCondition ConditionType = "ControlPlaneReady" // WaitingForControlPlaneFallbackReason (Severity=Info) documents a cluster waiting for the control plane // to be available. // NOTE: This reason is used only as a fallback when the control plane object is not reporting its own ready condition. WaitingForControlPlaneFallbackReason = "WaitingForControlPlane" // WaitingForControlPlaneAvailableReason (Severity=Info) documents a Cluster API object // waiting for the control plane machine to be available. // // NOTE: Having the control plane machine available is a pre-condition for joining additional control planes // or workers nodes. WaitingForControlPlaneAvailableReason = "WaitingForControlPlaneAvailable" )
const ( // BootstrapReadyCondition reports a summary of current status of the bootstrap object defined for this machine. // This condition is mirrored from the Ready condition in the bootstrap ref object, and // the absence of this condition might signal problems in the reconcile external loops or the fact that // the bootstrap provider does not implement the Ready condition yet. BootstrapReadyCondition ConditionType = "BootstrapReady" // WaitingForDataSecretFallbackReason (Severity=Info) documents a machine waiting for the bootstrap data secret // to be available. // NOTE: This reason is used only as a fallback when the bootstrap object is not reporting its own ready condition. WaitingForDataSecretFallbackReason = "WaitingForDataSecret" // DrainingSucceededCondition provide evidence of the status of the node drain operation which happens during the machine // deletion process. DrainingSucceededCondition ConditionType = "DrainingSucceeded" // DrainingReason (Severity=Info) documents a machine node being drained. DrainingReason = "Draining" // DrainingFailedReason (Severity=Warning) documents a machine node drain operation failed. DrainingFailedReason = "DrainingFailed" // PreDrainDeleteHookSucceededCondition reports a machine waiting for a PreDrainDeleteHook before being delete. PreDrainDeleteHookSucceededCondition ConditionType = "PreDrainDeleteHookSucceeded" // PreTerminateDeleteHookSucceededCondition reports a machine waiting for a PreDrainDeleteHook before being delete. PreTerminateDeleteHookSucceededCondition ConditionType = "PreTerminateDeleteHookSucceeded" // WaitingExternalHookReason (Severity=Info) provide evidence that we are waiting for an external hook to complete. WaitingExternalHookReason = "WaitingExternalHook" )
const ( // MachineHealthCheckSuccededCondition is set on machines that have passed a healthcheck by the MachineHealthCheck controller. // In the event that the health check fails it will be set to False. MachineHealthCheckSuccededCondition ConditionType = "HealthCheckSucceeded" // MachineHasFailureReason is the reason used when a machine has either a FailureReason or a FailureMessage set on its status. MachineHasFailureReason = "MachineHasFailure" // NodeStartupTimeoutReason is the reason used when a machine's node does not appear within the specified timeout. NodeStartupTimeoutReason = "NodeStartupTimeout" // UnhealthyNodeConditionReason is the reason used when a machine's node has one of the MachineHealthCheck's unhealthy conditions. UnhealthyNodeConditionReason = "UnhealthyNode" )
const ( // MachineOwnerRemediatedCondition is set on machines that have failed a healthcheck by the MachineHealthCheck controller. // MachineOwnerRemediatedCondition is set to False after a health check fails, but should be changed to True by the owning controller after remediation succeeds. MachineOwnerRemediatedCondition ConditionType = "OwnerRemediated" // WaitingForRemediationReason is the reason used when a machine fails a health check and remediation is needed. WaitingForRemediationReason = "WaitingForRemediation" // RemediationFailedReason is the reason used when a remediation owner fails to remediate an unhealthy machine. RemediationFailedReason = "RemediationFailed" // RemediationInProgressReason is the reason used when an unhealthy machine is being remediated by the remediation owner. RemediationInProgressReason = "RemediationInProgress" // ExternalRemediationTemplateAvailable is set on machinehealthchecks when MachineHealthCheck controller uses external remediation. // ExternalRemediationTemplateAvailable is set to false if external remediation template is not found. ExternalRemediationTemplateAvailable ConditionType = "ExternalRemediationTemplateAvailable" // ExternalRemediationTemplateNotFound is the reason used when a machine health check fails to find external remediation template. ExternalRemediationTemplateNotFound = "ExternalRemediationTemplateNotFound" // ExternalRemediationRequestAvailable is set on machinehealthchecks when MachineHealthCheck controller uses external remediation. // ExternalRemediationRequestAvailable is set to false if creating external remediation request fails. ExternalRemediationRequestAvailable ConditionType = "ExternalRemediationRequestAvailable" // ExternalRemediationRequestCreationFailed is the reason used when a machine health check fails to create external remediation request. ExternalRemediationRequestCreationFailed = "ExternalRemediationRequestCreationFailed" )
const ( // MachineNodeHealthyCondition provides info about the operational state of the Kubernetes node hosted on the machine by summarizing node conditions. // If the conditions defined in a Kubernetes node (i.e., NodeReady, NodeMemoryPressure, NodeDiskPressure, NodePIDPressure, and NodeNetworkUnavailable) are in a healthy state, it will be set to True. MachineNodeHealthyCondition ConditionType = "NodeHealthy" // WaitingForNodeRefReason (Severity=Info) documents a machine.spec.providerId is not assigned yet. WaitingForNodeRefReason = "WaitingForNodeRef" // NodeProvisioningReason (Severity=Info) documents machine in the process of provisioning a node. // NB. provisioning --> NodeRef == "". NodeProvisioningReason = "NodeProvisioning" // NodeNotFoundReason (Severity=Error) documents a machine's node has previously been observed but is now gone. // NB. provisioned --> NodeRef != "". NodeNotFoundReason = "NodeNotFound" // NodeConditionsFailedReason (Severity=Warning) documents a node is not in a healthy state due to the failed state of at least 1 Kubelet condition. NodeConditionsFailedReason = "NodeConditionsFailed" )
Conditions and condition Reasons for the Machine's Node object.
const ( // MachinePhasePending is the first state a Machine is assigned by // Cluster API Machine controller after being created. MachinePhasePending = MachinePhase("Pending") // MachinePhaseProvisioning is the state when the // Machine infrastructure is being created. MachinePhaseProvisioning = MachinePhase("Provisioning") // MachinePhaseProvisioned is the state when its // infrastructure has been created and configured. MachinePhaseProvisioned = MachinePhase("Provisioned") // MachinePhaseRunning is the Machine state when it has // become a Kubernetes Node in a Ready state. MachinePhaseRunning = MachinePhase("Running") // MachinePhaseDeleting is the Machine state when a delete // request has been sent to the API Server, // but its infrastructure has not yet been fully deleted. MachinePhaseDeleting = MachinePhase("Deleting") // MachinePhaseDeleted is the Machine state when the object // and the related infrastructure is deleted and // ready to be garbage collected by the API Server. MachinePhaseDeleted = MachinePhase("Deleted") // MachinePhaseFailed is the Machine state when the system // might require user intervention. MachinePhaseFailed = MachinePhase("Failed") // MachinePhaseUnknown is returned if the Machine state cannot be determined. MachinePhaseUnknown = MachinePhase("Unknown") )
const ( // MachineFinalizer is set on PrepareForCreate callback. MachineFinalizer = "machine.cluster.x-k8s.io" // MachineControlPlaneLabelName is the label set on machines or related objects that are part of a control plane. MachineControlPlaneLabelName = "cluster.x-k8s.io/control-plane" // ExcludeNodeDrainingAnnotation annotation explicitly skips node draining if set. ExcludeNodeDrainingAnnotation = "machine.cluster.x-k8s.io/exclude-node-draining" // MachineSetLabelName is the label set on machines if they're controlled by MachineSet. MachineSetLabelName = "cluster.x-k8s.io/set-name" // MachineDeploymentLabelName is the label set on machines if they're controlled by MachineDeployment. MachineDeploymentLabelName = "cluster.x-k8s.io/deployment-name" // PreDrainDeleteHookAnnotationPrefix annotation specifies the prefix we // search each annotation for during the pre-drain.delete lifecycle hook // to pause reconciliation of deletion. These hooks will prevent removal of // draining the associated node until all are removed. PreDrainDeleteHookAnnotationPrefix = "pre-drain.delete.hook.machine.cluster.x-k8s.io" // PreTerminateDeleteHookAnnotationPrefix annotation specifies the prefix we // search each annotation for during the pre-terminate.delete lifecycle hook // to pause reconciliation of deletion. These hooks will prevent removal of // an instance from an infrastructure provider until all are removed. PreTerminateDeleteHookAnnotationPrefix = "pre-terminate.delete.hook.machine.cluster.x-k8s.io" )
const ( // RollingUpdateMachineDeploymentStrategyType replaces the old MachineSet by new one using rolling update // i.e. gradually scale down the old MachineSet and scale up the new one. RollingUpdateMachineDeploymentStrategyType MachineDeploymentStrategyType = "RollingUpdate" // RevisionAnnotation is the revision annotation of a machine deployment's machine sets which records its rollout sequence. RevisionAnnotation = "machinedeployment.clusters.x-k8s.io/revision" // RevisionHistoryAnnotation maintains the history of all old revisions that a machine set has served for a machine deployment. RevisionHistoryAnnotation = "machinedeployment.clusters.x-k8s.io/revision-history" // DesiredReplicasAnnotation is the desired replicas for a machine deployment recorded as an annotation // in its machine sets. Helps in separating scaling events from the rollout process and for // determining if the new machine set for a deployment is really saturated. DesiredReplicasAnnotation = "machinedeployment.clusters.x-k8s.io/desired-replicas" // MaxReplicasAnnotation is the maximum replicas a deployment can have at a given point, which // is machinedeployment.spec.replicas + maxSurge. Used by the underlying machine sets to estimate their // proportions in case the deployment has surge replicas. MaxReplicasAnnotation = "machinedeployment.clusters.x-k8s.io/max-replicas" )
const ( // MachineDeploymentPhaseScalingUp indicates the MachineDeployment is scaling up. MachineDeploymentPhaseScalingUp = MachineDeploymentPhase("ScalingUp") // MachineDeploymentPhaseScalingDown indicates the MachineDeployment is scaling down. MachineDeploymentPhaseScalingDown = MachineDeploymentPhase("ScalingDown") // MachineDeploymentPhaseRunning indicates scaling has completed and all Machines are running. MachineDeploymentPhaseRunning = MachineDeploymentPhase("Running") // MachineDeploymentPhaseFailed indicates there was a problem scaling and user intervention might be required. MachineDeploymentPhaseFailed = MachineDeploymentPhase("Failed") // MachineDeploymentPhaseUnknown indicates the state of the MachineDeployment cannot be determined. MachineDeploymentPhaseUnknown = MachineDeploymentPhase("Unknown") )
const ( // MachinePoolPhasePending is the first state a MachinePool is assigned by // Cluster API MachinePool controller after being created. MachinePoolPhasePending = MachinePoolPhase("Pending") // MachinePoolPhaseProvisioning is the state when the // MachinePool infrastructure is being created or updated. MachinePoolPhaseProvisioning = MachinePoolPhase("Provisioning") // MachinePoolPhaseProvisioned is the state when its // infrastructure has been created and configured. MachinePoolPhaseProvisioned = MachinePoolPhase("Provisioned") // MachinePoolPhaseRunning is the MachinePool state when its instances // have become Kubernetes Nodes in the Ready state. MachinePoolPhaseRunning = MachinePoolPhase("Running") // MachinePoolPhaseScalingUp is the MachinePool state when the // MachinePool infrastructure is scaling up. MachinePoolPhaseScalingUp = MachinePoolPhase("ScalingUp") // MachinePoolPhaseScalingDown is the MachinePool state when the // MachinePool infrastructure is scaling down. MachinePoolPhaseScalingDown = MachinePoolPhase("ScalingDown") // MachinePoolPhaseDeleting is the MachinePool state when a delete // request has been sent to the API Server, // but its infrastructure has not yet been fully deleted. MachinePoolPhaseDeleting = MachinePoolPhase("Deleting") // MachinePoolPhaseFailed is the MachinePool state when the system // might require user intervention. MachinePoolPhaseFailed = MachinePoolPhase("Failed") // MachinePoolPhaseUnknown is returned if the MachinePool state cannot be determined. MachinePoolPhaseUnknown = MachinePoolPhase("Unknown") )
const ( // ClusterFinalizer is the finalizer used by the cluster controller to // cleanup the cluster resources when a Cluster is being deleted. ClusterFinalizer = "cluster.cluster.x-k8s.io" )
const (
// MachineNodeNameIndex is used by the Machine Controller to index Machines by Node name, and add a watch on Nodes.
MachineNodeNameIndex = "status.nodeRef.name"
)
const (
// MachinePoolFinalizer is used to ensure deletion of dependencies (nodes, infra).
MachinePoolFinalizer = "machinepool.exp.cluster.x-k8s.io"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "cluster.x-k8s.io", Version: "v1alpha3"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Convert_v1alpha3_APIEndpoint_To_v1beta2_APIEndpoint ¶
func Convert_v1alpha3_APIEndpoint_To_v1beta2_APIEndpoint(in *APIEndpoint, out *v1beta2.APIEndpoint, s conversion.Scope) error
Convert_v1alpha3_APIEndpoint_To_v1beta2_APIEndpoint is an autogenerated conversion function.
func Convert_v1alpha3_ClusterList_To_v1beta2_ClusterList ¶
func Convert_v1alpha3_ClusterList_To_v1beta2_ClusterList(in *ClusterList, out *v1beta2.ClusterList, s conversion.Scope) error
Convert_v1alpha3_ClusterList_To_v1beta2_ClusterList is an autogenerated conversion function.
func Convert_v1alpha3_ClusterNetwork_To_v1beta2_ClusterNetwork ¶
func Convert_v1alpha3_ClusterNetwork_To_v1beta2_ClusterNetwork(in *ClusterNetwork, out *clusterv1.ClusterNetwork, s apimachineryconversion.Scope) error
func Convert_v1alpha3_ClusterSpec_To_v1beta2_ClusterSpec ¶
func Convert_v1alpha3_ClusterSpec_To_v1beta2_ClusterSpec(in *ClusterSpec, out *clusterv1.ClusterSpec, s apimachineryconversion.Scope) error
func Convert_v1alpha3_ClusterStatus_To_v1beta2_ClusterStatus ¶
func Convert_v1alpha3_ClusterStatus_To_v1beta2_ClusterStatus(in *ClusterStatus, out *clusterv1.ClusterStatus, s apimachineryconversion.Scope) error
func Convert_v1alpha3_Cluster_To_v1beta2_Cluster ¶
func Convert_v1alpha3_Cluster_To_v1beta2_Cluster(in *Cluster, out *v1beta2.Cluster, s conversion.Scope) error
Convert_v1alpha3_Cluster_To_v1beta2_Cluster is an autogenerated conversion function.
func Convert_v1alpha3_Condition_To_v1beta2_Condition ¶
func Convert_v1alpha3_Condition_To_v1beta2_Condition(in *Condition, out *v1beta2.Condition, s conversion.Scope) error
Convert_v1alpha3_Condition_To_v1beta2_Condition is an autogenerated conversion function.
func Convert_v1alpha3_Conditions_To_v1beta2_Deprecated_V1Beta1_Conditions ¶
func Convert_v1alpha3_Conditions_To_v1beta2_Deprecated_V1Beta1_Conditions(in *Conditions, out *clusterv1.Conditions)
func Convert_v1alpha3_MachineAddress_To_v1beta2_MachineAddress ¶
func Convert_v1alpha3_MachineAddress_To_v1beta2_MachineAddress(in *MachineAddress, out *v1beta2.MachineAddress, s conversion.Scope) error
Convert_v1alpha3_MachineAddress_To_v1beta2_MachineAddress is an autogenerated conversion function.
func Convert_v1alpha3_MachineDeploymentList_To_v1beta2_MachineDeploymentList ¶
func Convert_v1alpha3_MachineDeploymentList_To_v1beta2_MachineDeploymentList(in *MachineDeploymentList, out *v1beta2.MachineDeploymentList, s conversion.Scope) error
Convert_v1alpha3_MachineDeploymentList_To_v1beta2_MachineDeploymentList is an autogenerated conversion function.
func Convert_v1alpha3_MachineDeploymentSpec_To_v1beta2_MachineDeploymentSpec ¶
func Convert_v1alpha3_MachineDeploymentSpec_To_v1beta2_MachineDeploymentSpec(in *MachineDeploymentSpec, out *clusterv1.MachineDeploymentSpec, s apimachineryconversion.Scope) error
func Convert_v1alpha3_MachineDeploymentStatus_To_v1beta2_MachineDeploymentStatus ¶
func Convert_v1alpha3_MachineDeploymentStatus_To_v1beta2_MachineDeploymentStatus(in *MachineDeploymentStatus, out *clusterv1.MachineDeploymentStatus, s apimachineryconversion.Scope) error
func Convert_v1alpha3_MachineDeployment_To_v1beta2_MachineDeployment ¶
func Convert_v1alpha3_MachineDeployment_To_v1beta2_MachineDeployment(in *MachineDeployment, out *v1beta2.MachineDeployment, s conversion.Scope) error
Convert_v1alpha3_MachineDeployment_To_v1beta2_MachineDeployment is an autogenerated conversion function.
func Convert_v1alpha3_MachineHealthCheckList_To_v1beta2_MachineHealthCheckList ¶
func Convert_v1alpha3_MachineHealthCheckList_To_v1beta2_MachineHealthCheckList(in *MachineHealthCheckList, out *v1beta2.MachineHealthCheckList, s conversion.Scope) error
Convert_v1alpha3_MachineHealthCheckList_To_v1beta2_MachineHealthCheckList is an autogenerated conversion function.
func Convert_v1alpha3_MachineHealthCheckSpec_To_v1beta2_MachineHealthCheckSpec ¶
func Convert_v1alpha3_MachineHealthCheckSpec_To_v1beta2_MachineHealthCheckSpec(in *MachineHealthCheckSpec, out *clusterv1.MachineHealthCheckSpec, s apimachineryconversion.Scope) error
func Convert_v1alpha3_MachineHealthCheckStatus_To_v1beta2_MachineHealthCheckStatus ¶
func Convert_v1alpha3_MachineHealthCheckStatus_To_v1beta2_MachineHealthCheckStatus(in *MachineHealthCheckStatus, out *v1beta2.MachineHealthCheckStatus, s conversion.Scope) error
Convert_v1alpha3_MachineHealthCheckStatus_To_v1beta2_MachineHealthCheckStatus is an autogenerated conversion function.
func Convert_v1alpha3_MachineHealthCheck_To_v1beta2_MachineHealthCheck ¶
func Convert_v1alpha3_MachineHealthCheck_To_v1beta2_MachineHealthCheck(in *MachineHealthCheck, out *v1beta2.MachineHealthCheck, s conversion.Scope) error
Convert_v1alpha3_MachineHealthCheck_To_v1beta2_MachineHealthCheck is an autogenerated conversion function.
func Convert_v1alpha3_MachineList_To_v1beta2_MachineList ¶
func Convert_v1alpha3_MachineList_To_v1beta2_MachineList(in *MachineList, out *v1beta2.MachineList, s conversion.Scope) error
Convert_v1alpha3_MachineList_To_v1beta2_MachineList is an autogenerated conversion function.
func Convert_v1alpha3_MachinePoolList_To_v1beta2_MachinePoolList ¶
func Convert_v1alpha3_MachinePoolList_To_v1beta2_MachinePoolList(in *MachinePoolList, out *v1beta2.MachinePoolList, s conversion.Scope) error
Convert_v1alpha3_MachinePoolList_To_v1beta2_MachinePoolList is an autogenerated conversion function.
func Convert_v1alpha3_MachinePoolSpec_To_v1beta2_MachinePoolSpec ¶
func Convert_v1alpha3_MachinePoolSpec_To_v1beta2_MachinePoolSpec(in *MachinePoolSpec, out *clusterv1.MachinePoolSpec, s apimachineryconversion.Scope) error
Convert_v1alpha3_MachinePoolSpec_To_v1beta2_MachinePoolSpec is an autogenerated conversion function.
func Convert_v1alpha3_MachinePoolStatus_To_v1beta2_MachinePoolStatus ¶
func Convert_v1alpha3_MachinePoolStatus_To_v1beta2_MachinePoolStatus(in *MachinePoolStatus, out *clusterv1.MachinePoolStatus, s apimachineryconversion.Scope) error
func Convert_v1alpha3_MachinePool_To_v1beta2_MachinePool ¶
func Convert_v1alpha3_MachinePool_To_v1beta2_MachinePool(in *MachinePool, out *clusterv1.MachinePool, s apimachineryconversion.Scope) error
func Convert_v1alpha3_MachineRollingUpdateDeployment_To_v1beta2_MachineDeploymentRolloutStrategyRollingUpdate ¶
func Convert_v1alpha3_MachineRollingUpdateDeployment_To_v1beta2_MachineDeploymentRolloutStrategyRollingUpdate(in *MachineRollingUpdateDeployment, out *clusterv1.MachineDeploymentRolloutStrategyRollingUpdate, _ apimachineryconversion.Scope) error
func Convert_v1alpha3_MachineSetList_To_v1beta2_MachineSetList ¶
func Convert_v1alpha3_MachineSetList_To_v1beta2_MachineSetList(in *MachineSetList, out *v1beta2.MachineSetList, s conversion.Scope) error
Convert_v1alpha3_MachineSetList_To_v1beta2_MachineSetList is an autogenerated conversion function.
func Convert_v1alpha3_MachineSetSpec_To_v1beta2_MachineSetSpec ¶
func Convert_v1alpha3_MachineSetSpec_To_v1beta2_MachineSetSpec(in *MachineSetSpec, out *clusterv1.MachineSetSpec, s apimachineryconversion.Scope) error
func Convert_v1alpha3_MachineSetStatus_To_v1beta2_MachineSetStatus ¶
func Convert_v1alpha3_MachineSetStatus_To_v1beta2_MachineSetStatus(in *MachineSetStatus, out *clusterv1.MachineSetStatus, s apimachineryconversion.Scope) error
func Convert_v1alpha3_MachineSet_To_v1beta2_MachineSet ¶
func Convert_v1alpha3_MachineSet_To_v1beta2_MachineSet(in *MachineSet, out *v1beta2.MachineSet, s conversion.Scope) error
Convert_v1alpha3_MachineSet_To_v1beta2_MachineSet is an autogenerated conversion function.
func Convert_v1alpha3_MachineSpec_To_v1beta2_MachineSpec ¶
func Convert_v1alpha3_MachineSpec_To_v1beta2_MachineSpec(in *MachineSpec, out *clusterv1.MachineSpec, s apimachineryconversion.Scope) error
func Convert_v1alpha3_MachineStatus_To_v1beta2_MachineStatus ¶
func Convert_v1alpha3_MachineStatus_To_v1beta2_MachineStatus(in *MachineStatus, out *clusterv1.MachineStatus, s apimachineryconversion.Scope) error
func Convert_v1alpha3_MachineTemplateSpec_To_v1beta2_MachineTemplateSpec ¶
func Convert_v1alpha3_MachineTemplateSpec_To_v1beta2_MachineTemplateSpec(in *MachineTemplateSpec, out *v1beta2.MachineTemplateSpec, s conversion.Scope) error
Convert_v1alpha3_MachineTemplateSpec_To_v1beta2_MachineTemplateSpec is an autogenerated conversion function.
func Convert_v1alpha3_Machine_To_v1beta2_Machine ¶
func Convert_v1alpha3_Machine_To_v1beta2_Machine(in *Machine, out *v1beta2.Machine, s conversion.Scope) error
Convert_v1alpha3_Machine_To_v1beta2_Machine is an autogenerated conversion function.
func Convert_v1alpha3_NetworkRanges_To_v1beta2_NetworkRanges ¶
func Convert_v1alpha3_NetworkRanges_To_v1beta2_NetworkRanges(in *NetworkRanges, out *v1beta2.NetworkRanges, s conversion.Scope) error
Convert_v1alpha3_NetworkRanges_To_v1beta2_NetworkRanges is an autogenerated conversion function.
func Convert_v1alpha3_ObjectMeta_To_v1beta2_ObjectMeta ¶
func Convert_v1alpha3_ObjectMeta_To_v1beta2_ObjectMeta(in *ObjectMeta, out *clusterv1.ObjectMeta, s apimachineryconversion.Scope) error
func Convert_v1beta2_APIEndpoint_To_v1alpha3_APIEndpoint ¶
func Convert_v1beta2_APIEndpoint_To_v1alpha3_APIEndpoint(in *v1beta2.APIEndpoint, out *APIEndpoint, s conversion.Scope) error
Convert_v1beta2_APIEndpoint_To_v1alpha3_APIEndpoint is an autogenerated conversion function.
func Convert_v1beta2_ClusterList_To_v1alpha3_ClusterList ¶
func Convert_v1beta2_ClusterList_To_v1alpha3_ClusterList(in *v1beta2.ClusterList, out *ClusterList, s conversion.Scope) error
Convert_v1beta2_ClusterList_To_v1alpha3_ClusterList is an autogenerated conversion function.
func Convert_v1beta2_ClusterNetwork_To_v1alpha3_ClusterNetwork ¶
func Convert_v1beta2_ClusterNetwork_To_v1alpha3_ClusterNetwork(in *clusterv1.ClusterNetwork, out *ClusterNetwork, s apimachineryconversion.Scope) error
func Convert_v1beta2_ClusterSpec_To_v1alpha3_ClusterSpec ¶
func Convert_v1beta2_ClusterSpec_To_v1alpha3_ClusterSpec(in *clusterv1.ClusterSpec, out *ClusterSpec, s apimachineryconversion.Scope) error
func Convert_v1beta2_ClusterStatus_To_v1alpha3_ClusterStatus ¶
func Convert_v1beta2_ClusterStatus_To_v1alpha3_ClusterStatus(in *clusterv1.ClusterStatus, out *ClusterStatus, s apimachineryconversion.Scope) error
func Convert_v1beta2_Cluster_To_v1alpha3_Cluster ¶
func Convert_v1beta2_Cluster_To_v1alpha3_Cluster(in *v1beta2.Cluster, out *Cluster, s conversion.Scope) error
Convert_v1beta2_Cluster_To_v1alpha3_Cluster is an autogenerated conversion function.
func Convert_v1beta2_Condition_To_v1alpha3_Condition ¶
func Convert_v1beta2_Condition_To_v1alpha3_Condition(in *v1beta2.Condition, out *Condition, s conversion.Scope) error
Convert_v1beta2_Condition_To_v1alpha3_Condition is an autogenerated conversion function.
func Convert_v1beta2_Deprecated_V1Beta1_Conditions_To_v1alpha3_Conditions ¶
func Convert_v1beta2_Deprecated_V1Beta1_Conditions_To_v1alpha3_Conditions(in *clusterv1.Conditions, out *Conditions)
func Convert_v1beta2_MachineAddress_To_v1alpha3_MachineAddress ¶
func Convert_v1beta2_MachineAddress_To_v1alpha3_MachineAddress(in *v1beta2.MachineAddress, out *MachineAddress, s conversion.Scope) error
Convert_v1beta2_MachineAddress_To_v1alpha3_MachineAddress is an autogenerated conversion function.
func Convert_v1beta2_MachineDeploymentList_To_v1alpha3_MachineDeploymentList ¶
func Convert_v1beta2_MachineDeploymentList_To_v1alpha3_MachineDeploymentList(in *v1beta2.MachineDeploymentList, out *MachineDeploymentList, s conversion.Scope) error
Convert_v1beta2_MachineDeploymentList_To_v1alpha3_MachineDeploymentList is an autogenerated conversion function.
func Convert_v1beta2_MachineDeploymentRolloutStrategyRollingUpdate_To_v1alpha3_MachineRollingUpdateDeployment ¶
func Convert_v1beta2_MachineDeploymentRolloutStrategyRollingUpdate_To_v1alpha3_MachineRollingUpdateDeployment(in *clusterv1.MachineDeploymentRolloutStrategyRollingUpdate, out *MachineRollingUpdateDeployment, _ apimachineryconversion.Scope) error
func Convert_v1beta2_MachineDeploymentSpec_To_v1alpha3_MachineDeploymentSpec ¶
func Convert_v1beta2_MachineDeploymentSpec_To_v1alpha3_MachineDeploymentSpec(in *clusterv1.MachineDeploymentSpec, out *MachineDeploymentSpec, s apimachineryconversion.Scope) error
func Convert_v1beta2_MachineDeploymentStatus_To_v1alpha3_MachineDeploymentStatus ¶
func Convert_v1beta2_MachineDeploymentStatus_To_v1alpha3_MachineDeploymentStatus(in *clusterv1.MachineDeploymentStatus, out *MachineDeploymentStatus, s apimachineryconversion.Scope) error
func Convert_v1beta2_MachineDeployment_To_v1alpha3_MachineDeployment ¶
func Convert_v1beta2_MachineDeployment_To_v1alpha3_MachineDeployment(in *v1beta2.MachineDeployment, out *MachineDeployment, s conversion.Scope) error
Convert_v1beta2_MachineDeployment_To_v1alpha3_MachineDeployment is an autogenerated conversion function.
func Convert_v1beta2_MachineHealthCheckList_To_v1alpha3_MachineHealthCheckList ¶
func Convert_v1beta2_MachineHealthCheckList_To_v1alpha3_MachineHealthCheckList(in *v1beta2.MachineHealthCheckList, out *MachineHealthCheckList, s conversion.Scope) error
Convert_v1beta2_MachineHealthCheckList_To_v1alpha3_MachineHealthCheckList is an autogenerated conversion function.
func Convert_v1beta2_MachineHealthCheckSpec_To_v1alpha3_MachineHealthCheckSpec ¶
func Convert_v1beta2_MachineHealthCheckSpec_To_v1alpha3_MachineHealthCheckSpec(in *clusterv1.MachineHealthCheckSpec, out *MachineHealthCheckSpec, s apimachineryconversion.Scope) error
func Convert_v1beta2_MachineHealthCheckStatus_To_v1alpha3_MachineHealthCheckStatus ¶
func Convert_v1beta2_MachineHealthCheckStatus_To_v1alpha3_MachineHealthCheckStatus(in *clusterv1.MachineHealthCheckStatus, out *MachineHealthCheckStatus, s apimachineryconversion.Scope) error
func Convert_v1beta2_MachineHealthCheck_To_v1alpha3_MachineHealthCheck ¶
func Convert_v1beta2_MachineHealthCheck_To_v1alpha3_MachineHealthCheck(in *v1beta2.MachineHealthCheck, out *MachineHealthCheck, s conversion.Scope) error
Convert_v1beta2_MachineHealthCheck_To_v1alpha3_MachineHealthCheck is an autogenerated conversion function.
func Convert_v1beta2_MachineList_To_v1alpha3_MachineList ¶
func Convert_v1beta2_MachineList_To_v1alpha3_MachineList(in *v1beta2.MachineList, out *MachineList, s conversion.Scope) error
Convert_v1beta2_MachineList_To_v1alpha3_MachineList is an autogenerated conversion function.
func Convert_v1beta2_MachinePoolList_To_v1alpha3_MachinePoolList ¶
func Convert_v1beta2_MachinePoolList_To_v1alpha3_MachinePoolList(in *v1beta2.MachinePoolList, out *MachinePoolList, s conversion.Scope) error
Convert_v1beta2_MachinePoolList_To_v1alpha3_MachinePoolList is an autogenerated conversion function.
func Convert_v1beta2_MachinePoolSpec_To_v1alpha3_MachinePoolSpec ¶
func Convert_v1beta2_MachinePoolSpec_To_v1alpha3_MachinePoolSpec(in *v1beta2.MachinePoolSpec, out *MachinePoolSpec, s conversion.Scope) error
Convert_v1beta2_MachinePoolSpec_To_v1alpha3_MachinePoolSpec is an autogenerated conversion function.
func Convert_v1beta2_MachinePoolStatus_To_v1alpha3_MachinePoolStatus ¶
func Convert_v1beta2_MachinePoolStatus_To_v1alpha3_MachinePoolStatus(in *clusterv1.MachinePoolStatus, out *MachinePoolStatus, s apimachineryconversion.Scope) error
func Convert_v1beta2_MachinePool_To_v1alpha3_MachinePool ¶
func Convert_v1beta2_MachinePool_To_v1alpha3_MachinePool(in *clusterv1.MachinePool, out *MachinePool, s apimachineryconversion.Scope) error
func Convert_v1beta2_MachineSetList_To_v1alpha3_MachineSetList ¶
func Convert_v1beta2_MachineSetList_To_v1alpha3_MachineSetList(in *v1beta2.MachineSetList, out *MachineSetList, s conversion.Scope) error
Convert_v1beta2_MachineSetList_To_v1alpha3_MachineSetList is an autogenerated conversion function.
func Convert_v1beta2_MachineSetSpec_To_v1alpha3_MachineSetSpec ¶
func Convert_v1beta2_MachineSetSpec_To_v1alpha3_MachineSetSpec(in *clusterv1.MachineSetSpec, out *MachineSetSpec, s apimachineryconversion.Scope) error
func Convert_v1beta2_MachineSetStatus_To_v1alpha3_MachineSetStatus ¶
func Convert_v1beta2_MachineSetStatus_To_v1alpha3_MachineSetStatus(in *clusterv1.MachineSetStatus, out *MachineSetStatus, _ apimachineryconversion.Scope) error
func Convert_v1beta2_MachineSet_To_v1alpha3_MachineSet ¶
func Convert_v1beta2_MachineSet_To_v1alpha3_MachineSet(in *v1beta2.MachineSet, out *MachineSet, s conversion.Scope) error
Convert_v1beta2_MachineSet_To_v1alpha3_MachineSet is an autogenerated conversion function.
func Convert_v1beta2_MachineSpec_To_v1alpha3_MachineSpec ¶
func Convert_v1beta2_MachineSpec_To_v1alpha3_MachineSpec(in *clusterv1.MachineSpec, out *MachineSpec, s apimachineryconversion.Scope) error
func Convert_v1beta2_MachineStatus_To_v1alpha3_MachineStatus ¶
func Convert_v1beta2_MachineStatus_To_v1alpha3_MachineStatus(in *clusterv1.MachineStatus, out *MachineStatus, s apimachineryconversion.Scope) error
func Convert_v1beta2_MachineTemplateSpec_To_v1alpha3_MachineTemplateSpec ¶
func Convert_v1beta2_MachineTemplateSpec_To_v1alpha3_MachineTemplateSpec(in *v1beta2.MachineTemplateSpec, out *MachineTemplateSpec, s conversion.Scope) error
Convert_v1beta2_MachineTemplateSpec_To_v1alpha3_MachineTemplateSpec is an autogenerated conversion function.
func Convert_v1beta2_Machine_To_v1alpha3_Machine ¶
func Convert_v1beta2_Machine_To_v1alpha3_Machine(in *v1beta2.Machine, out *Machine, s conversion.Scope) error
Convert_v1beta2_Machine_To_v1alpha3_Machine is an autogenerated conversion function.
func Convert_v1beta2_NetworkRanges_To_v1alpha3_NetworkRanges ¶
func Convert_v1beta2_NetworkRanges_To_v1alpha3_NetworkRanges(in *v1beta2.NetworkRanges, out *NetworkRanges, s conversion.Scope) error
Convert_v1beta2_NetworkRanges_To_v1alpha3_NetworkRanges is an autogenerated conversion function.
func Convert_v1beta2_ObjectMeta_To_v1alpha3_ObjectMeta ¶
func Convert_v1beta2_ObjectMeta_To_v1alpha3_ObjectMeta(in *v1beta2.ObjectMeta, out *ObjectMeta, s conversion.Scope) error
Convert_v1beta2_ObjectMeta_To_v1alpha3_ObjectMeta is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
Types ¶
type APIEndpoint ¶
type APIEndpoint struct {
// host is the hostname on which the API server is serving.
Host string `json:"host"`
// port is the port on which the API server is serving.
Port int32 `json:"port"`
}
APIEndpoint represents a reachable Kubernetes API endpoint.
func (*APIEndpoint) DeepCopy ¶
func (in *APIEndpoint) DeepCopy() *APIEndpoint
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIEndpoint.
func (*APIEndpoint) DeepCopyInto ¶
func (in *APIEndpoint) DeepCopyInto(out *APIEndpoint)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (APIEndpoint) IsValid ¶
func (v APIEndpoint) IsValid() bool
IsValid returns true if both host and port are non-zero values.
func (APIEndpoint) IsZero ¶
func (v APIEndpoint) IsZero() bool
IsZero returns true if both host and port are zero values.
func (APIEndpoint) String ¶
func (v APIEndpoint) String() string
String returns a formatted version HOST:PORT of this APIEndpoint.
type Bootstrap ¶
type Bootstrap struct {
// configRef is a reference to a bootstrap provider-specific resource
// that holds configuration details. The reference is optional to
// allow users/operators to specify Bootstrap.Data without
// the need of a controller.
// +optional
ConfigRef *corev1.ObjectReference `json:"configRef,omitempty"`
// data contains the bootstrap data, such as cloud-init details scripts.
// If nil, the Machine should remain in the Pending state.
//
// Deprecated: Switch to DataSecretName.
//
// +optional
Data *string `json:"data,omitempty"`
// dataSecretName is the name of the secret that stores the bootstrap data script.
// If nil, the Machine should remain in the Pending state.
// +optional
DataSecretName *string `json:"dataSecretName,omitempty"`
}
Bootstrap capsulates fields to configure the Machine’s bootstrapping mechanism.
func (*Bootstrap) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Bootstrap.
func (*Bootstrap) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Cluster ¶
type Cluster 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 is the desired state of Cluster.
Spec ClusterSpec `json:"spec,omitempty"`
// status is the observed state of Cluster.
Status ClusterStatus `json:"status,omitempty"`
}
Cluster is the Schema for the clusters API.
func (*Cluster) ConvertFrom ¶
func (dst *Cluster) ConvertFrom(srcRaw conversion.Hub) error
func (*Cluster) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
func (*Cluster) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Cluster) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Cluster) GetConditions ¶
func (c *Cluster) GetConditions() Conditions
GetConditions returns the set of conditions for this object.
func (*Cluster) SetConditions ¶
func (c *Cluster) SetConditions(conditions Conditions)
SetConditions sets the conditions on this object.
type ClusterList ¶
type ClusterList 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#lists-and-simple-kinds
metav1.ListMeta `json:"metadata,omitempty"`
// items is the list of Clusters.
Items []Cluster `json:"items"`
}
ClusterList contains a list of Cluster.
func (*ClusterList) DeepCopy ¶
func (in *ClusterList) DeepCopy() *ClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList.
func (*ClusterList) DeepCopyInto ¶
func (in *ClusterList) DeepCopyInto(out *ClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterList) DeepCopyObject ¶
func (in *ClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterNetwork ¶
type ClusterNetwork struct {
// apiServerPort specifies the port the API Server should bind to.
// Defaults to 6443.
// +optional
APIServerPort *int32 `json:"apiServerPort,omitempty"`
// services is the network ranges from which service VIPs are allocated.
// +optional
Services *NetworkRanges `json:"services,omitempty"`
// pods is the network ranges from which Pod networks are allocated.
// +optional
Pods *NetworkRanges `json:"pods,omitempty"`
// serviceDomain is the domain name for services.
// +optional
ServiceDomain string `json:"serviceDomain,omitempty"`
}
ClusterNetwork specifies the different networking parameters for a cluster.
func (*ClusterNetwork) DeepCopy ¶
func (in *ClusterNetwork) DeepCopy() *ClusterNetwork
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterNetwork.
func (*ClusterNetwork) DeepCopyInto ¶
func (in *ClusterNetwork) DeepCopyInto(out *ClusterNetwork)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterPhase ¶
type ClusterPhase string
ClusterPhase is a string representation of a Cluster Phase.
This type is a high-level indicator of the status of the Cluster as it is provisioned, from the API user’s perspective.
The value should not be interpreted by any software components as a reliable indication of the actual state of the Cluster, and controllers should not use the Cluster Phase field value when making decisions about what action to take.
Controllers should always look at the actual state of the Cluster’s fields to make those decisions.
type ClusterSpec ¶
type ClusterSpec struct {
// paused can be used to prevent controllers from processing the Cluster and all its associated objects.
// +optional
Paused bool `json:"paused,omitempty"`
// clusterNetwork is the cluster network configuration.
// +optional
ClusterNetwork *ClusterNetwork `json:"clusterNetwork,omitempty"`
// controlPlaneEndpoint represents the endpoint used to communicate with the control plane.
// +optional
ControlPlaneEndpoint APIEndpoint `json:"controlPlaneEndpoint"`
// controlPlaneRef is an optional reference to a provider-specific resource that holds
// the details for provisioning the Control Plane for a Cluster.
// +optional
ControlPlaneRef *corev1.ObjectReference `json:"controlPlaneRef,omitempty"`
// infrastructureRef is a reference to a provider-specific resource that holds the details
// for provisioning infrastructure for a cluster in said provider.
// +optional
InfrastructureRef *corev1.ObjectReference `json:"infrastructureRef,omitempty"`
}
ClusterSpec defines the desired state of Cluster.
func (*ClusterSpec) DeepCopy ¶
func (in *ClusterSpec) DeepCopy() *ClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.
func (*ClusterSpec) DeepCopyInto ¶
func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterStatus ¶
type ClusterStatus struct {
// failureDomains is a slice of failure domain objects synced from the infrastructure provider.
FailureDomains FailureDomains `json:"failureDomains,omitempty"`
// failureReason indicates that there is a fatal problem reconciling the
// state, and will be set to a token value suitable for
// programmatic interpretation.
// +optional
FailureReason *capierrors.ClusterStatusError `json:"failureReason,omitempty"`
// failureMessage indicates that there is a fatal problem reconciling the
// state, and will be set to a descriptive error message.
// +optional
FailureMessage *string `json:"failureMessage,omitempty"`
// phase represents the current phase of cluster actuation.
// E.g. Pending, Running, Terminating, Failed etc.
// +optional
Phase string `json:"phase,omitempty"`
// infrastructureReady is the state of the infrastructure provider.
// +optional
InfrastructureReady bool `json:"infrastructureReady"`
// controlPlaneInitialized defines if the control plane has been initialized.
// +optional
ControlPlaneInitialized bool `json:"controlPlaneInitialized"`
// controlPlaneReady defines if the control plane is ready.
// +optional
ControlPlaneReady bool `json:"controlPlaneReady,omitempty"`
// conditions defines current service state of the cluster.
// +optional
Conditions Conditions `json:"conditions,omitempty"`
// observedGeneration is the latest generation observed by the controller.
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}
ClusterStatus defines the observed state of Cluster.
func (*ClusterStatus) DeepCopy ¶
func (in *ClusterStatus) DeepCopy() *ClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.
func (*ClusterStatus) DeepCopyInto ¶
func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterStatus) GetTypedPhase ¶
func (c *ClusterStatus) GetTypedPhase() ClusterPhase
GetTypedPhase attempts to parse the Phase field and return the typed ClusterPhase representation as described in `machine_phase_types.go`.
func (*ClusterStatus) SetTypedPhase ¶
func (c *ClusterStatus) SetTypedPhase(p ClusterPhase)
SetTypedPhase sets the Phase field to the string representation of ClusterPhase.
type Condition ¶
type Condition struct {
// type of condition in CamelCase or in foo.example.com/CamelCase.
// Many .condition.type values are consistent across resources like Available, but because arbitrary conditions
// can be useful (see .node.status.conditions), the ability to deconflict is important.
// +required
Type ConditionType `json:"type"`
// status of the condition, one of True, False, Unknown.
// +required
Status corev1.ConditionStatus `json:"status"`
// severity provides an explicit classification of Reason code, so the users or machines can immediately
// understand the current situation and act accordingly.
// The Severity field MUST be set only when Status=False.
// +optional
Severity ConditionSeverity `json:"severity,omitempty"`
// lastTransitionTime is the last time the condition transitioned from one status to another.
// This should be when the underlying condition changed. If that is not known, then using the time when
// the API field changed is acceptable.
// +optional
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
// reason is the reason for the condition's last transition in CamelCase.
// The specific API may choose whether or not this field is considered a guaranteed API.
// This field may not be empty.
// +optional
Reason string `json:"reason,omitempty"`
// message is a human readable message indicating details about the transition.
// This field may be empty.
// +optional
Message string `json:"message,omitempty"`
}
Condition defines an observation of a Cluster API resource operational state.
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionSeverity ¶
type ConditionSeverity string
ConditionSeverity expresses the severity of a Condition Type failing.
const ( // ConditionSeverityError specifies that a condition with `Status=False` is an error. ConditionSeverityError ConditionSeverity = "Error" // ConditionSeverityWarning specifies that a condition with `Status=False` is a warning. ConditionSeverityWarning ConditionSeverity = "Warning" // ConditionSeverityInfo specifies that a condition with `Status=False` is informative. ConditionSeverityInfo ConditionSeverity = "Info" // ConditionSeverityNone should apply only to conditions with `Status=True`. ConditionSeverityNone ConditionSeverity = "" )
type ConditionType ¶
type ConditionType string
ConditionType is a valid value for Condition.Type.
const ( // InfrastructureReadyCondition reports a summary of current status of the infrastructure object defined for this cluster/machine/machinepool. // This condition is mirrored from the Ready condition in the infrastructure ref object, and // the absence of this condition might signal problems in the reconcile external loops or the fact that // the infrastructure provider does not implement the Ready condition yet. InfrastructureReadyCondition ConditionType = "InfrastructureReady" // WaitingForInfrastructureFallbackReason (Severity=Info) documents a cluster/machine/machinepool waiting for the underlying infrastructure // to be available. // NOTE: This reason is used only as a fallback when the infrastructure object is not reporting its own ready condition. WaitingForInfrastructureFallbackReason = "WaitingForInfrastructure" )
const ( // RemediationAllowedCondition is set on MachineHealthChecks to show the status of whether the MachineHealthCheck is // allowed to remediate any Machines or whether it is blocked from remediating any further. RemediationAllowedCondition ConditionType = "RemediationAllowed" // TooManyUnhealthyReason is the reason used when too many Machines are unhealthy and the MachineHealthCheck is blocked // from making any further remediations. TooManyUnhealthyReason = "TooManyUnhealthy" )
const ( // ReadyCondition defines the Ready condition type that summarizes the operational state of a Cluster API object. ReadyCondition ConditionType = "Ready" )
Common ConditionTypes used by Cluster API objects.
type Conditions ¶
type Conditions []Condition
Conditions provide observations of the operational state of a Cluster API resource.
func (Conditions) DeepCopy ¶
func (in Conditions) DeepCopy() Conditions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Conditions.
func (Conditions) DeepCopyInto ¶
func (in Conditions) DeepCopyInto(out *Conditions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FailureDomainSpec ¶
type FailureDomainSpec struct {
// controlPlane determines if this failure domain is suitable for use by control plane machines.
// +optional
ControlPlane bool `json:"controlPlane"`
// attributes is a free form map of attributes an infrastructure provider might use or require.
// +optional
Attributes map[string]string `json:"attributes,omitempty"`
}
FailureDomainSpec is the Schema for Cluster API failure domains. It allows controllers to understand how many failure domains a cluster can optionally span across.
func (*FailureDomainSpec) DeepCopy ¶
func (in *FailureDomainSpec) DeepCopy() *FailureDomainSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FailureDomainSpec.
func (*FailureDomainSpec) DeepCopyInto ¶
func (in *FailureDomainSpec) DeepCopyInto(out *FailureDomainSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FailureDomains ¶
type FailureDomains map[string]FailureDomainSpec
FailureDomains is a slice of FailureDomains.
func (FailureDomains) DeepCopy ¶
func (in FailureDomains) DeepCopy() FailureDomains
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FailureDomains.
func (FailureDomains) DeepCopyInto ¶
func (in FailureDomains) DeepCopyInto(out *FailureDomains)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (FailureDomains) FilterControlPlane ¶
func (in FailureDomains) FilterControlPlane() FailureDomains
FilterControlPlane returns a FailureDomain slice containing only the domains suitable to be used for control plane nodes.
func (FailureDomains) GetIDs ¶
func (in FailureDomains) GetIDs() []*string
GetIDs returns a slice containing the ids for failure domains.
type Machine
deprecated
type Machine 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 is the desired state of Machine.
Spec MachineSpec `json:"spec,omitempty"`
// status is the observed state of Machine.
Status MachineStatus `json:"status,omitempty"`
}
Machine is the Schema for the machines API.
Deprecated: This type will be removed in one of the next releases.
func (*Machine) ConvertFrom ¶
func (dst *Machine) ConvertFrom(srcRaw conversion.Hub) error
func (*Machine) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Machine.
func (*Machine) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Machine) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Machine) GetConditions ¶
func (m *Machine) GetConditions() Conditions
GetConditions returns the set of conditions for this object.
func (*Machine) SetConditions ¶
func (m *Machine) SetConditions(conditions Conditions)
SetConditions sets the conditions on this object.
type MachineAddress ¶
type MachineAddress struct {
// type is the machine address type, one of Hostname, ExternalIP or InternalIP.
Type MachineAddressType `json:"type"`
// address is the machine address.
Address string `json:"address"`
}
MachineAddress contains information for the node's address.
func (*MachineAddress) DeepCopy ¶
func (in *MachineAddress) DeepCopy() *MachineAddress
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineAddress.
func (*MachineAddress) DeepCopyInto ¶
func (in *MachineAddress) DeepCopyInto(out *MachineAddress)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineAddressType ¶
type MachineAddressType string
MachineAddressType describes a valid MachineAddress type.
const ( MachineHostName MachineAddressType = "Hostname" MachineExternalIP MachineAddressType = "ExternalIP" MachineInternalIP MachineAddressType = "InternalIP" MachineExternalDNS MachineAddressType = "ExternalDNS" MachineInternalDNS MachineAddressType = "InternalDNS" )
Define all the constants related to MachineAddressType.
type MachineAddresses ¶
type MachineAddresses []MachineAddress
MachineAddresses is a slice of MachineAddress items to be used by infrastructure providers.
func (MachineAddresses) DeepCopy ¶
func (in MachineAddresses) DeepCopy() MachineAddresses
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineAddresses.
func (MachineAddresses) DeepCopyInto ¶
func (in MachineAddresses) DeepCopyInto(out *MachineAddresses)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineDeployment
deprecated
type MachineDeployment 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 is the desired state of MachineDeployment.
Spec MachineDeploymentSpec `json:"spec,omitempty"`
// status is the observed state of MachineDeployment.
Status MachineDeploymentStatus `json:"status,omitempty"`
}
MachineDeployment is the Schema for the machinedeployments API.
Deprecated: This type will be removed in one of the next releases.
func (*MachineDeployment) ConvertFrom ¶
func (dst *MachineDeployment) ConvertFrom(srcRaw conversion.Hub) error
func (*MachineDeployment) ConvertTo ¶
func (src *MachineDeployment) ConvertTo(dstRaw conversion.Hub) error
func (*MachineDeployment) DeepCopy ¶
func (in *MachineDeployment) DeepCopy() *MachineDeployment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeployment.
func (*MachineDeployment) DeepCopyInto ¶
func (in *MachineDeployment) DeepCopyInto(out *MachineDeployment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineDeployment) DeepCopyObject ¶
func (in *MachineDeployment) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineDeploymentList
deprecated
type MachineDeploymentList 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#lists-and-simple-kinds
metav1.ListMeta `json:"metadata,omitempty"`
// items is the list of MachineDeployments.
Items []MachineDeployment `json:"items"`
}
MachineDeploymentList contains a list of MachineDeployment.
Deprecated: This type will be removed in one of the next releases.
func (*MachineDeploymentList) DeepCopy ¶
func (in *MachineDeploymentList) DeepCopy() *MachineDeploymentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentList.
func (*MachineDeploymentList) DeepCopyInto ¶
func (in *MachineDeploymentList) DeepCopyInto(out *MachineDeploymentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineDeploymentList) DeepCopyObject ¶
func (in *MachineDeploymentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineDeploymentPhase ¶
type MachineDeploymentPhase string
MachineDeploymentPhase indicates the progress of the machine deployment.
type MachineDeploymentSpec ¶
type MachineDeploymentSpec struct {
// clusterName is the name of the Cluster this object belongs to.
// +kubebuilder:validation:MinLength=1
ClusterName string `json:"clusterName"`
// replicas is the number of desired machines. Defaults to 1.
// This is a pointer to distinguish between explicit zero and not specified.
Replicas *int32 `json:"replicas,omitempty"`
// selector is the label selector for machines. Existing MachineSets whose machines are
// selected by this will be the ones affected by this deployment.
// It must match the machine template's labels.
Selector metav1.LabelSelector `json:"selector"`
// template describes the machines that will be created.
Template MachineTemplateSpec `json:"template"`
// strategy is the deployment strategy to use to replace existing machines with
// new ones.
// +optional
Strategy *MachineDeploymentStrategy `json:"strategy,omitempty"`
// minReadySeconds is the minimum number of seconds for which a newly created machine should
// be ready.
// Defaults to 0 (machine will be considered available as soon as it
// is ready)
// +optional
MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
// revisionHistoryLimit is the number of old MachineSets to retain to allow rollback.
// This is a pointer to distinguish between explicit zero and not specified.
// Defaults to 1.
// +optional
RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"`
// paused indicates that the deployment is paused.
// +optional
Paused bool `json:"paused,omitempty"`
// progressDeadlineSeconds is the maximum time in seconds for a deployment to make progress before it
// is considered to be failed. The deployment controller will continue to
// process failed deployments and a condition with a ProgressDeadlineExceeded
// reason will be surfaced in the deployment status. Note that progress will
// not be estimated during the time a deployment is paused. Defaults to 600s.
ProgressDeadlineSeconds *int32 `json:"progressDeadlineSeconds,omitempty"`
}
MachineDeploymentSpec defines the desired state of MachineDeployment.
func (*MachineDeploymentSpec) DeepCopy ¶
func (in *MachineDeploymentSpec) DeepCopy() *MachineDeploymentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentSpec.
func (*MachineDeploymentSpec) DeepCopyInto ¶
func (in *MachineDeploymentSpec) DeepCopyInto(out *MachineDeploymentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineDeploymentStatus ¶
type MachineDeploymentStatus struct {
// observedGeneration is the generation observed by the deployment controller.
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// selector is the same as the label selector but in the string format to avoid introspection
// by clients. The string will be in the same format as the query-param syntax.
// More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors
// +optional
Selector string `json:"selector,omitempty"`
// replicas is the total number of non-terminated machines targeted by this deployment
// (their labels match the selector).
// +optional
Replicas int32 `json:"replicas,omitempty"`
// updatedReplicas is the total number of non-terminated machines targeted by this deployment
// that have the desired template spec.
// +optional
UpdatedReplicas int32 `json:"updatedReplicas,omitempty"`
// readyReplicas is the total number of ready machines targeted by this deployment.
// +optional
ReadyReplicas int32 `json:"readyReplicas,omitempty"`
// availableReplicas is the total number of available machines (ready for at least minReadySeconds)
// targeted by this deployment.
// +optional
AvailableReplicas int32 `json:"availableReplicas,omitempty"`
// This is the total number of machines that are still required for
// the deployment to have 100% available capacity. They may either
// be machines that are running but not yet available or machines
// that still have not been created.
// +optional
UnavailableReplicas int32 `json:"unavailableReplicas,omitempty"`
// phase represents the current phase of a MachineDeployment (ScalingUp, ScalingDown, Running, Failed, or Unknown).
// +optional
Phase string `json:"phase,omitempty"`
}
MachineDeploymentStatus defines the observed state of MachineDeployment.
func (*MachineDeploymentStatus) DeepCopy ¶
func (in *MachineDeploymentStatus) DeepCopy() *MachineDeploymentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentStatus.
func (*MachineDeploymentStatus) DeepCopyInto ¶
func (in *MachineDeploymentStatus) DeepCopyInto(out *MachineDeploymentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineDeploymentStatus) GetTypedPhase ¶
func (md *MachineDeploymentStatus) GetTypedPhase() MachineDeploymentPhase
GetTypedPhase attempts to parse the Phase field and return the typed MachineDeploymentPhase representation.
func (*MachineDeploymentStatus) SetTypedPhase ¶
func (md *MachineDeploymentStatus) SetTypedPhase(p MachineDeploymentPhase)
SetTypedPhase sets the Phase field to the string representation of MachineDeploymentPhase.
type MachineDeploymentStrategy ¶
type MachineDeploymentStrategy struct {
// type of deployment. Currently the only supported strategy is
// "RollingUpdate".
// Default is RollingUpdate.
// +optional
Type MachineDeploymentStrategyType `json:"type,omitempty"`
// rollingUpdate is the rolling update config params. Present only if
// MachineDeploymentStrategyType = RollingUpdate.
// +optional
RollingUpdate *MachineRollingUpdateDeployment `json:"rollingUpdate,omitempty"`
}
MachineDeploymentStrategy describes how to replace existing machines with new ones.
func (*MachineDeploymentStrategy) DeepCopy ¶
func (in *MachineDeploymentStrategy) DeepCopy() *MachineDeploymentStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDeploymentStrategy.
func (*MachineDeploymentStrategy) DeepCopyInto ¶
func (in *MachineDeploymentStrategy) DeepCopyInto(out *MachineDeploymentStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineDeploymentStrategyType ¶
type MachineDeploymentStrategyType string
MachineDeploymentStrategyType defines the type of MachineDeployment rollout strategies.
type MachineHealthCheck
deprecated
type MachineHealthCheck 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 is the specification of machine health check policy
Spec MachineHealthCheckSpec `json:"spec,omitempty"`
// status is the most recently observed status of MachineHealthCheck resource
Status MachineHealthCheckStatus `json:"status,omitempty"`
}
MachineHealthCheck is the Schema for the machinehealthchecks API.
Deprecated: This type will be removed in one of the next releases.
func (*MachineHealthCheck) ConvertFrom ¶
func (dst *MachineHealthCheck) ConvertFrom(srcRaw conversion.Hub) error
func (*MachineHealthCheck) ConvertTo ¶
func (src *MachineHealthCheck) ConvertTo(dstRaw conversion.Hub) error
func (*MachineHealthCheck) DeepCopy ¶
func (in *MachineHealthCheck) DeepCopy() *MachineHealthCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineHealthCheck.
func (*MachineHealthCheck) DeepCopyInto ¶
func (in *MachineHealthCheck) DeepCopyInto(out *MachineHealthCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineHealthCheck) DeepCopyObject ¶
func (in *MachineHealthCheck) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MachineHealthCheck) GetConditions ¶
func (m *MachineHealthCheck) GetConditions() Conditions
GetConditions returns the set of conditions for this object.
func (*MachineHealthCheck) SetConditions ¶
func (m *MachineHealthCheck) SetConditions(conditions Conditions)
SetConditions sets the conditions on this object.
type MachineHealthCheckList
deprecated
type MachineHealthCheckList 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#lists-and-simple-kinds
metav1.ListMeta `json:"metadata,omitempty"`
// items is the list of MachineHealthChecks.
Items []MachineHealthCheck `json:"items"`
}
MachineHealthCheckList contains a list of MachineHealthCheck.
Deprecated: This type will be removed in one of the next releases.
func (*MachineHealthCheckList) DeepCopy ¶
func (in *MachineHealthCheckList) DeepCopy() *MachineHealthCheckList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineHealthCheckList.
func (*MachineHealthCheckList) DeepCopyInto ¶
func (in *MachineHealthCheckList) DeepCopyInto(out *MachineHealthCheckList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineHealthCheckList) DeepCopyObject ¶
func (in *MachineHealthCheckList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineHealthCheckSpec ¶
type MachineHealthCheckSpec struct {
// clusterName is the name of the Cluster this object belongs to.
// +kubebuilder:validation:MinLength=1
ClusterName string `json:"clusterName"`
// selector is the label selector to match machines whose health will be exercised
Selector metav1.LabelSelector `json:"selector"`
// unhealthyConditions contains a list of the conditions that determine
// whether a node is considered unhealthy. The conditions are combined in a
// logical OR, i.e. if any of the conditions is met, the node is unhealthy.
//
// +kubebuilder:validation:MinItems=1
UnhealthyConditions []UnhealthyCondition `json:"unhealthyConditions"`
// maxUnhealthy specifies the maximum number of unhealthy machines allowed.
// Any further remediation is only allowed if at most "maxUnhealthy" machines selected by
// "selector" are not healthy.
// +optional
MaxUnhealthy *intstr.IntOrString `json:"maxUnhealthy,omitempty"`
// nodeStartupTimeout is the duration after which machines without a node will be considered to
// have failed and will be remediated.
// +optional
NodeStartupTimeout *metav1.Duration `json:"nodeStartupTimeout,omitempty"`
// remediationTemplate is a reference to a remediation template
// provided by an infrastructure provider.
//
// This field is completely optional, when filled, the MachineHealthCheck controller
// creates a new object from the template referenced and hands off remediation of the machine to
// a controller that lives outside of Cluster API.
// +optional
RemediationTemplate *corev1.ObjectReference `json:"remediationTemplate,omitempty"`
}
MachineHealthCheckSpec defines the desired state of MachineHealthCheck.
func (*MachineHealthCheckSpec) DeepCopy ¶
func (in *MachineHealthCheckSpec) DeepCopy() *MachineHealthCheckSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineHealthCheckSpec.
func (*MachineHealthCheckSpec) DeepCopyInto ¶
func (in *MachineHealthCheckSpec) DeepCopyInto(out *MachineHealthCheckSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineHealthCheckStatus ¶
type MachineHealthCheckStatus struct {
// expectedMachines is the total number of machines counted by this machine health check
// +kubebuilder:validation:Minimum=0
ExpectedMachines int32 `json:"expectedMachines,omitempty"`
// currentHealthy is the total number of healthy machines counted by this machine health check
// +kubebuilder:validation:Minimum=0
CurrentHealthy int32 `json:"currentHealthy,omitempty"`
// remediationsAllowed is the number of further remediations allowed by this machine health check before
// maxUnhealthy short circuiting will be applied
// +kubebuilder:validation:Minimum=0
RemediationsAllowed int32 `json:"remediationsAllowed,omitempty"`
// observedGeneration is the latest generation observed by the controller.
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// targets shows the current list of machines the machine health check is watching
// +optional
Targets []string `json:"targets,omitempty"`
// conditions defines current service state of the MachineHealthCheck.
// +optional
Conditions Conditions `json:"conditions,omitempty"`
}
MachineHealthCheckStatus defines the observed state of MachineHealthCheck.
func (*MachineHealthCheckStatus) DeepCopy ¶
func (in *MachineHealthCheckStatus) DeepCopy() *MachineHealthCheckStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineHealthCheckStatus.
func (*MachineHealthCheckStatus) DeepCopyInto ¶
func (in *MachineHealthCheckStatus) DeepCopyInto(out *MachineHealthCheckStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineList
deprecated
type MachineList 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#lists-and-simple-kinds
metav1.ListMeta `json:"metadata,omitempty"`
// items is the list of Machines.
Items []Machine `json:"items"`
}
MachineList contains a list of Machine.
Deprecated: This type will be removed in one of the next releases.
func (*MachineList) DeepCopy ¶
func (in *MachineList) DeepCopy() *MachineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineList.
func (*MachineList) DeepCopyInto ¶
func (in *MachineList) DeepCopyInto(out *MachineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineList) DeepCopyObject ¶
func (in *MachineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachinePhase ¶
type MachinePhase string
MachinePhase is a string representation of a Machine Phase.
This type is a high-level indicator of the status of the Machine as it is provisioned, from the API user’s perspective.
The value should not be interpreted by any software components as a reliable indication of the actual state of the Machine, and controllers should not use the Machine Phase field value when making decisions about what action to take.
Controllers should always look at the actual state of the Machine’s fields to make those decisions.
type MachinePool
deprecated
type MachinePool 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 is the desired state of MachinePool.
Spec MachinePoolSpec `json:"spec,omitempty"`
// status is the observed state of MachinePool.
Status MachinePoolStatus `json:"status,omitempty"`
}
MachinePool is the Schema for the machinepools API.
Deprecated: This type will be removed in one of the next releases.
func (*MachinePool) ConvertFrom ¶
func (dst *MachinePool) ConvertFrom(srcRaw conversion.Hub) error
func (*MachinePool) ConvertTo ¶
func (src *MachinePool) ConvertTo(dstRaw conversion.Hub) error
func (*MachinePool) DeepCopy ¶
func (in *MachinePool) DeepCopy() *MachinePool
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachinePool.
func (*MachinePool) DeepCopyInto ¶
func (in *MachinePool) DeepCopyInto(out *MachinePool)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachinePool) DeepCopyObject ¶
func (in *MachinePool) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MachinePool) GetConditions ¶
func (m *MachinePool) GetConditions() Conditions
GetConditions returns the set of conditions for this object.
func (*MachinePool) SetConditions ¶
func (m *MachinePool) SetConditions(conditions Conditions)
SetConditions sets the conditions on this object.
type MachinePoolList
deprecated
type MachinePoolList 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#lists-and-simple-kinds
metav1.ListMeta `json:"metadata,omitempty"`
// items is the list of MachinePools.
Items []MachinePool `json:"items"`
}
MachinePoolList contains a list of MachinePool.
Deprecated: This type will be removed in one of the next releases.
func (*MachinePoolList) DeepCopy ¶
func (in *MachinePoolList) DeepCopy() *MachinePoolList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachinePoolList.
func (*MachinePoolList) DeepCopyInto ¶
func (in *MachinePoolList) DeepCopyInto(out *MachinePoolList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachinePoolList) DeepCopyObject ¶
func (in *MachinePoolList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachinePoolPhase ¶
type MachinePoolPhase string
MachinePoolPhase is a string representation of a MachinePool Phase.
This type is a high-level indicator of the status of the MachinePool as it is provisioned, from the API user’s perspective.
The value should not be interpreted by any software components as a reliable indication of the actual state of the MachinePool, and controllers should not use the MachinePool Phase field value when making decisions about what action to take.
Controllers should always look at the actual state of the MachinePool’s fields to make those decisions.
type MachinePoolSpec ¶
type MachinePoolSpec struct {
// clusterName is the name of the Cluster this object belongs to.
// +kubebuilder:validation:MinLength=1
ClusterName string `json:"clusterName"`
// replicas is the number of desired machines. Defaults to 1.
// This is a pointer to distinguish between explicit zero and not specified.
Replicas *int32 `json:"replicas,omitempty"`
// template describes the machines that will be created.
Template MachineTemplateSpec `json:"template"`
// strategy is the deployment strategy to use to replace existing machine instances with
// new ones.
// +optional
Strategy *MachineDeploymentStrategy `json:"strategy,omitempty"`
// minReadySeconds is the minimum number of seconds for which a newly created machine instances should
// be ready.
// Defaults to 0 (machine instance will be considered available as soon as it
// is ready)
// +optional
MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
// providerIDList are the identification IDs of machine instances provided by the provider.
// This field must match the provider IDs as seen on the node objects corresponding to a machine pool's machine instances.
// +optional
ProviderIDList []string `json:"providerIDList,omitempty"`
// failureDomains is the list of failure domains this MachinePool should be attached to.
FailureDomains []string `json:"failureDomains,omitempty"`
}
MachinePoolSpec defines the desired state of MachinePool.
func (*MachinePoolSpec) DeepCopy ¶
func (in *MachinePoolSpec) DeepCopy() *MachinePoolSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachinePoolSpec.
func (*MachinePoolSpec) DeepCopyInto ¶
func (in *MachinePoolSpec) DeepCopyInto(out *MachinePoolSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachinePoolStatus ¶
type MachinePoolStatus struct {
// nodeRefs will point to the corresponding Nodes if it they exist.
// +optional
NodeRefs []corev1.ObjectReference `json:"nodeRefs,omitempty"`
// replicas is the most recently observed number of replicas.
// +optional
Replicas int32 `json:"replicas"`
// readyReplicas is the number of ready replicas for this MachinePool. A machine is considered ready when the node has been created and is "Ready".
// +optional
ReadyReplicas int32 `json:"readyReplicas,omitempty"`
// availableReplicas is the number of available replicas (ready for at least minReadySeconds) for this MachinePool.
// +optional
AvailableReplicas int32 `json:"availableReplicas,omitempty"`
// This is the total number of machine instances that are still required for
// the machine pool to have 100% available capacity. They may either
// be machine instances that are running but not yet available or machine instances
// that still have not been created.
// +optional
UnavailableReplicas int32 `json:"unavailableReplicas,omitempty"`
// failureReason indicates that there is a problem reconciling the state, and
// will be set to a token value suitable for programmatic interpretation.
// +optional
FailureReason *capierrors.MachinePoolStatusFailure `json:"failureReason,omitempty"`
// failureMessage indicates that there is a problem reconciling the state,
// and will be set to a descriptive error message.
// +optional
FailureMessage *string `json:"failureMessage,omitempty"`
// phase represents the current phase of cluster actuation.
// E.g. Pending, Running, Terminating, Failed etc.
// +optional
Phase string `json:"phase,omitempty"`
// bootstrapReady is the state of the bootstrap provider.
// +optional
BootstrapReady bool `json:"bootstrapReady"`
// infrastructureReady is the state of the infrastructure provider.
// +optional
InfrastructureReady bool `json:"infrastructureReady"`
// observedGeneration is the latest generation observed by the controller.
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// conditions define the current service state of the MachinePool.
// +optional
Conditions Conditions `json:"conditions,omitempty"`
}
MachinePoolStatus defines the observed state of MachinePool.
func (*MachinePoolStatus) DeepCopy ¶
func (in *MachinePoolStatus) DeepCopy() *MachinePoolStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachinePoolStatus.
func (*MachinePoolStatus) DeepCopyInto ¶
func (in *MachinePoolStatus) DeepCopyInto(out *MachinePoolStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachinePoolStatus) GetTypedPhase ¶
func (m *MachinePoolStatus) GetTypedPhase() MachinePoolPhase
GetTypedPhase attempts to parse the Phase field and return the typed MachinePoolPhase representation as described in `machinepool_phase_types.go`.
func (*MachinePoolStatus) SetTypedPhase ¶
func (m *MachinePoolStatus) SetTypedPhase(p MachinePoolPhase)
SetTypedPhase sets the Phase field to the string representation of MachinePoolPhase.
type MachineRollingUpdateDeployment ¶
type MachineRollingUpdateDeployment struct {
// Value can be an absolute number (ex: 5) or a percentage of desired
// machines (ex: 10%).
// Absolute number is calculated from percentage by rounding down.
// This can not be 0 if MaxSurge is 0.
// Defaults to 0.
// Example: when this is set to 30%, the old MachineSet can be scaled
// down to 70% of desired machines immediately when the rolling update
// starts. Once new machines are ready, old MachineSet can be scaled
// down further, followed by scaling up the new MachineSet, ensuring
// that the total number of machines available at all times
// during the update is at least 70% of desired machines.
// +optional
MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
// maxSurge is the maximum number of machines that can be scheduled above the
// desired number of machines.
// Value can be an absolute number (ex: 5) or a percentage of
// desired machines (ex: 10%).
// This can not be 0 if MaxUnavailable is 0.
// Absolute number is calculated from percentage by rounding up.
// Defaults to 1.
// Example: when this is set to 30%, the new MachineSet can be scaled
// up immediately when the rolling update starts, such that the total
// number of old and new machines do not exceed 130% of desired
// machines. Once old machines have been killed, new MachineSet can
// be scaled up further, ensuring that total number of machines running
// at any time during the update is at most 130% of desired machines.
// +optional
MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty"`
}
MachineRollingUpdateDeployment is used to control the desired behavior of rolling update.
func (*MachineRollingUpdateDeployment) DeepCopy ¶
func (in *MachineRollingUpdateDeployment) DeepCopy() *MachineRollingUpdateDeployment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineRollingUpdateDeployment.
func (*MachineRollingUpdateDeployment) DeepCopyInto ¶
func (in *MachineRollingUpdateDeployment) DeepCopyInto(out *MachineRollingUpdateDeployment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineSet
deprecated
type MachineSet 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 is the desired state of MachineSet.
Spec MachineSetSpec `json:"spec,omitempty"`
// status is the observed state of MachineSet.
Status MachineSetStatus `json:"status,omitempty"`
}
MachineSet is the Schema for the machinesets API.
Deprecated: This type will be removed in one of the next releases.
func (*MachineSet) ConvertFrom ¶
func (dst *MachineSet) ConvertFrom(srcRaw conversion.Hub) error
func (*MachineSet) ConvertTo ¶
func (src *MachineSet) ConvertTo(dstRaw conversion.Hub) error
func (*MachineSet) DeepCopy ¶
func (in *MachineSet) DeepCopy() *MachineSet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSet.
func (*MachineSet) DeepCopyInto ¶
func (in *MachineSet) DeepCopyInto(out *MachineSet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineSet) DeepCopyObject ¶
func (in *MachineSet) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MachineSet) Validate ¶
func (m *MachineSet) Validate() field.ErrorList
Validate validates the MachineSet fields.
type MachineSetDeletePolicy ¶
type MachineSetDeletePolicy string
MachineSetDeletePolicy defines how priority is assigned to nodes to delete when downscaling a MachineSet. Defaults to "Random".
const ( // RandomMachineSetDeletePolicy prioritizes both Machines that have the annotation // "cluster.x-k8s.io/delete-machine=yes" and Machines that are unhealthy // (Status.FailureReason or Status.FailureMessage are set to a non-empty value). // Finally, it picks Machines at random to delete. RandomMachineSetDeletePolicy MachineSetDeletePolicy = "Random" // NewestMachineSetDeletePolicy prioritizes both Machines that have the annotation // "cluster.x-k8s.io/delete-machine=yes" and Machines that are unhealthy // (Status.FailureReason or Status.FailureMessage are set to a non-empty value). // It then prioritizes the newest Machines for deletion based on the Machine's CreationTimestamp. NewestMachineSetDeletePolicy MachineSetDeletePolicy = "Newest" // OldestMachineSetDeletePolicy prioritizes both Machines that have the annotation // "cluster.x-k8s.io/delete-machine=yes" and Machines that are unhealthy // (Status.FailureReason or Status.FailureMessage are set to a non-empty value). // It then prioritizes the oldest Machines for deletion based on the Machine's CreationTimestamp. OldestMachineSetDeletePolicy MachineSetDeletePolicy = "Oldest" )
type MachineSetList
deprecated
type MachineSetList 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#lists-and-simple-kinds
metav1.ListMeta `json:"metadata,omitempty"`
// items is the list of MachineSets.
Items []MachineSet `json:"items"`
}
MachineSetList contains a list of MachineSet.
Deprecated: This type will be removed in one of the next releases.
func (*MachineSetList) DeepCopy ¶
func (in *MachineSetList) DeepCopy() *MachineSetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetList.
func (*MachineSetList) DeepCopyInto ¶
func (in *MachineSetList) DeepCopyInto(out *MachineSetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineSetList) DeepCopyObject ¶
func (in *MachineSetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineSetSpec ¶
type MachineSetSpec struct {
// clusterName is the name of the Cluster this object belongs to.
// +kubebuilder:validation:MinLength=1
ClusterName string `json:"clusterName"`
// replicas is the number of desired replicas.
// This is a pointer to distinguish between explicit zero and unspecified.
// Defaults to 1.
// +optional
Replicas *int32 `json:"replicas,omitempty"`
// minReadySeconds is the minimum number of seconds for which a newly created machine should be ready.
// Defaults to 0 (machine will be considered available as soon as it is ready)
// +optional
MinReadySeconds int32 `json:"minReadySeconds,omitempty"`
// deletePolicy defines the policy used to identify nodes to delete when downscaling.
// Defaults to "Random". Valid values are "Random, "Newest", "Oldest"
// +kubebuilder:validation:Enum=Random;Newest;Oldest
DeletePolicy string `json:"deletePolicy,omitempty"`
// selector is a label query over machines that should match the replica count.
// Label keys and values that must match in order to be controlled by this MachineSet.
// It must match the machine template's labels.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
Selector metav1.LabelSelector `json:"selector"`
// template is the object that describes the machine that will be created if
// insufficient replicas are detected.
// Object references to custom resources are treated as templates.
// +optional
Template MachineTemplateSpec `json:"template,omitempty"`
}
MachineSetSpec defines the desired state of MachineSet.
func (*MachineSetSpec) DeepCopy ¶
func (in *MachineSetSpec) DeepCopy() *MachineSetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetSpec.
func (*MachineSetSpec) DeepCopyInto ¶
func (in *MachineSetSpec) DeepCopyInto(out *MachineSetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineSetStatus ¶
type MachineSetStatus struct {
// selector is the same as the label selector but in the string format to avoid introspection
// by clients. The string will be in the same format as the query-param syntax.
// More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors
// +optional
Selector string `json:"selector,omitempty"`
// replicas is the most recently observed number of replicas.
// +optional
Replicas int32 `json:"replicas,omitempty"`
// fullyLabeledReplicas is the number of replicas that have labels matching the labels of the machine template of the MachineSet.
// +optional
FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty"`
// readyReplicas is the number of ready replicas for this MachineSet. A machine is considered ready when the node has been created and is "Ready".
// +optional
ReadyReplicas int32 `json:"readyReplicas,omitempty"`
// availableReplicas is the number of available replicas (ready for at least minReadySeconds) for this MachineSet.
// +optional
AvailableReplicas int32 `json:"availableReplicas,omitempty"`
// observedGeneration reflects the generation of the most recently observed MachineSet.
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// failureReason will be set in the event that there is a terminal problem
// reconciling the Machine and will contain a succinct value suitable
// for machine interpretation.
//
// In the event that there is a terminal problem reconciling the
// replicas, both FailureReason and FailureMessage will be set. FailureReason
// will be populated with a succinct value suitable for machine
// interpretation, while FailureMessage will contain a more verbose
// string suitable for logging and human consumption.
//
// These fields should not be set for transitive errors that a
// controller faces that are expected to be fixed automatically over
// time (like service outages), but instead indicate that something is
// fundamentally wrong with the MachineTemplate's spec or the configuration of
// the machine controller, and that manual intervention is required. Examples
// of terminal errors would be invalid combinations of settings in the
// spec, values that are unsupported by the machine controller, or the
// responsible machine controller itself being critically misconfigured.
//
// Any transient errors that occur during the reconciliation of Machines
// can be added as events to the MachineSet object and/or logged in the
// controller's output.
// +optional
FailureReason *capierrors.MachineSetStatusError `json:"failureReason,omitempty"`
// failureMessage will be set in the event that there is a terminal problem
// reconciling the Machine and will contain a more verbose string suitable
// for logging and human consumption.
// +optional
FailureMessage *string `json:"failureMessage,omitempty"`
}
MachineSetStatus defines the observed state of MachineSet.
func (*MachineSetStatus) DeepCopy ¶
func (in *MachineSetStatus) DeepCopy() *MachineSetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSetStatus.
func (*MachineSetStatus) DeepCopyInto ¶
func (in *MachineSetStatus) DeepCopyInto(out *MachineSetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineSpec ¶
type MachineSpec struct {
// clusterName is the name of the Cluster this object belongs to.
// +kubebuilder:validation:MinLength=1
ClusterName string `json:"clusterName"`
// bootstrap is a reference to a local struct which encapsulates
// fields to configure the Machine’s bootstrapping mechanism.
Bootstrap Bootstrap `json:"bootstrap"`
// infrastructureRef is a required reference to a custom resource
// offered by an infrastructure provider.
InfrastructureRef corev1.ObjectReference `json:"infrastructureRef"`
// version defines the desired Kubernetes version.
// This field is meant to be optionally used by bootstrap providers.
// +optional
Version *string `json:"version,omitempty"`
// providerID is the identification ID of the machine provided by the provider.
// This field must match the provider ID as seen on the node object corresponding to this machine.
// This field is required by higher level consumers of cluster-api. Example use case is cluster autoscaler
// with cluster-api as provider. Clean-up logic in the autoscaler compares machines to nodes to find out
// machines at provider which could not get registered as Kubernetes nodes. With cluster-api as a
// generic out-of-tree provider for autoscaler, this field is required by autoscaler to be
// able to have a provider view of the list of machines. Another list of nodes is queried from the k8s apiserver
// and then a comparison is done to find out unregistered machines and are marked for delete.
// This field will be set by the actuators and consumed by higher level entities like autoscaler that will
// be interfacing with cluster-api as generic provider.
// +optional
ProviderID *string `json:"providerID,omitempty"`
// failureDomain is the failure domain the machine will be created in.
// Must match a key in the FailureDomains map stored on the cluster object.
// +optional
FailureDomain *string `json:"failureDomain,omitempty"`
// nodeDrainTimeout is the total amount of time that the controller will spend on draining a node.
// The default value is 0, meaning that the node can be drained without any time limitations.
// NOTE: NodeDrainTimeout is different from `kubectl drain --timeout`
// +optional
NodeDrainTimeout *metav1.Duration `json:"nodeDrainTimeout,omitempty"`
}
MachineSpec defines the desired state of Machine.
func (*MachineSpec) DeepCopy ¶
func (in *MachineSpec) DeepCopy() *MachineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSpec.
func (*MachineSpec) DeepCopyInto ¶
func (in *MachineSpec) DeepCopyInto(out *MachineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineStatus ¶
type MachineStatus struct {
// nodeRef will point to the corresponding Node if it exists.
// +optional
NodeRef *corev1.ObjectReference `json:"nodeRef,omitempty"`
// lastUpdated identifies when the phase of the Machine last transitioned.
// +optional
LastUpdated *metav1.Time `json:"lastUpdated,omitempty"`
// version specifies the current version of Kubernetes running
// on the corresponding Node. This is meant to be a means of bubbling
// up status from the Node to the Machine.
// It is entirely optional, but useful for end-user UX if it’s present.
// +optional
Version *string `json:"version,omitempty"`
// failureReason will be set in the event that there is a terminal problem
// reconciling the Machine and will contain a succinct value suitable
// for machine interpretation.
//
// This field should not be set for transitive errors that a controller
// faces that are expected to be fixed automatically over
// time (like service outages), but instead indicate that something is
// fundamentally wrong with the Machine's spec or the configuration of
// the controller, and that manual intervention is required. Examples
// of terminal errors would be invalid combinations of settings in the
// spec, values that are unsupported by the controller, or the
// responsible controller itself being critically misconfigured.
//
// Any transient errors that occur during the reconciliation of Machines
// can be added as events to the Machine object and/or logged in the
// controller's output.
// +optional
FailureReason *capierrors.MachineStatusError `json:"failureReason,omitempty"`
// failureMessage will be set in the event that there is a terminal problem
// reconciling the Machine and will contain a more verbose string suitable
// for logging and human consumption.
//
// This field should not be set for transitive errors that a controller
// faces that are expected to be fixed automatically over
// time (like service outages), but instead indicate that something is
// fundamentally wrong with the Machine's spec or the configuration of
// the controller, and that manual intervention is required. Examples
// of terminal errors would be invalid combinations of settings in the
// spec, values that are unsupported by the controller, or the
// responsible controller itself being critically misconfigured.
//
// Any transient errors that occur during the reconciliation of Machines
// can be added as events to the Machine object and/or logged in the
// controller's output.
// +optional
FailureMessage *string `json:"failureMessage,omitempty"`
// addresses is a list of addresses assigned to the machine.
// This field is copied from the infrastructure provider reference.
// +optional
Addresses MachineAddresses `json:"addresses,omitempty"`
// phase represents the current phase of machine actuation.
// E.g. Pending, Running, Terminating, Failed etc.
// +optional
Phase string `json:"phase,omitempty"`
// bootstrapReady is the state of the bootstrap provider.
// +optional
BootstrapReady bool `json:"bootstrapReady"`
// infrastructureReady is the state of the infrastructure provider.
// +optional
InfrastructureReady bool `json:"infrastructureReady"`
// observedGeneration is the latest generation observed by the controller.
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// conditions defines current service state of the Machine.
// +optional
Conditions Conditions `json:"conditions,omitempty"`
}
MachineStatus defines the observed state of Machine.
func (*MachineStatus) DeepCopy ¶
func (in *MachineStatus) DeepCopy() *MachineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineStatus.
func (*MachineStatus) DeepCopyInto ¶
func (in *MachineStatus) DeepCopyInto(out *MachineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineStatus) GetTypedPhase ¶
func (m *MachineStatus) GetTypedPhase() MachinePhase
GetTypedPhase attempts to parse the Phase field and return the typed MachinePhase representation as described in `machine_phase_types.go`.
func (*MachineStatus) SetTypedPhase ¶
func (m *MachineStatus) SetTypedPhase(p MachinePhase)
SetTypedPhase sets the Phase field to the string representation of MachinePhase.
type MachineTemplateSpec ¶
type MachineTemplateSpec struct {
// metadata is the standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
ObjectMeta `json:"metadata,omitempty"`
// spec is the specification of the desired behavior of the machine.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
// +optional
Spec MachineSpec `json:"spec,omitempty"`
}
MachineTemplateSpec describes the data needed to create a Machine from a template.
func (*MachineTemplateSpec) DeepCopy ¶
func (in *MachineTemplateSpec) DeepCopy() *MachineTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTemplateSpec.
func (*MachineTemplateSpec) DeepCopyInto ¶
func (in *MachineTemplateSpec) DeepCopyInto(out *MachineTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkRanges ¶
type NetworkRanges struct {
// cidrBlocks is a list of CIDR blocks.
CIDRBlocks []string `json:"cidrBlocks"`
}
NetworkRanges represents ranges of network addresses.
func (*NetworkRanges) DeepCopy ¶
func (in *NetworkRanges) DeepCopy() *NetworkRanges
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkRanges.
func (*NetworkRanges) DeepCopyInto ¶
func (in *NetworkRanges) DeepCopyInto(out *NetworkRanges)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkRanges) String ¶
func (n *NetworkRanges) String() string
type ObjectMeta ¶
type ObjectMeta struct {
// name must be unique within a namespace. Is required when creating resources, although
// some resources may allow a client to request the generation of an appropriate name
// automatically. Name is primarily intended for creation idempotence and configuration
// definition.
// Cannot be updated.
// More info: http://kubernetes.io/docs/user-guide/identifiers#names
// +optional
//
// Deprecated: This field has no function and is going to be removed in a next release.
Name string `json:"name,omitempty"`
// generateName is an optional prefix, used by the server, to generate a unique
// name ONLY IF the Name field has not been provided.
// If this field is used, the name returned to the client will be different
// than the name passed. This value will also be combined with a unique suffix.
// The provided value has the same validation rules as the Name field,
// and may be truncated by the length of the suffix required to make the value
// unique on the server.
//
// If this field is specified and the generated name exists, the server will
// NOT return a 409 - instead, it will either return 201 Created or 500 with Reason
// ServerTimeout indicating a unique name could not be found in the time allotted, and the client
// should retry (optionally after the time indicated in the Retry-After header).
//
// Applied only if Name is not specified.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
// +optional
//
// Deprecated: This field has no function and is going to be removed in a next release.
GenerateName string `json:"generateName,omitempty"`
// namespace defines the space within each name must be unique. An empty namespace is
// equivalent to the "default" namespace, but "default" is the canonical representation.
// Not all objects are required to be scoped to a namespace - the value of this field for
// those objects will be empty.
//
// Must be a DNS_LABEL.
// Cannot be updated.
// More info: http://kubernetes.io/docs/user-guide/namespaces
// +optional
//
// Deprecated: This field has no function and is going to be removed in a next release.
Namespace string `json:"namespace,omitempty"`
// labels is a map of string keys and values that can be used to organize and categorize
// (scope and select) objects. May match selectors of replication controllers
// and services.
// More info: http://kubernetes.io/docs/user-guide/labels
// +optional
Labels map[string]string `json:"labels,omitempty"`
// annotations is an unstructured key value map stored with a resource that may be
// set by external tools to store and retrieve arbitrary metadata. They are not
// queryable and should be preserved when modifying objects.
// More info: http://kubernetes.io/docs/user-guide/annotations
// +optional
Annotations map[string]string `json:"annotations,omitempty"`
// ownerReferences is the list of objects depended by this object. If ALL objects in the list have
// been deleted, this object will be garbage collected. If this object is managed by a controller,
// then an entry in this list will point to this controller, with the controller field set to true.
// There cannot be more than one managing controller.
// +optional
// +patchMergeKey=uid
// +patchStrategy=merge
//
// Deprecated: This field has no function and is going to be removed in a next release.
OwnerReferences []metav1.OwnerReference `json:"ownerReferences,omitempty" patchStrategy:"merge" patchMergeKey:"uid"`
}
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. This is a copy of customizable fields from metav1.ObjectMeta.
ObjectMeta is embedded in `Machine.Spec`, `MachineDeployment.Template` and `MachineSet.Template`, which are not top-level Kubernetes objects. Given that metav1.ObjectMeta has lots of special cases and read-only fields which end up in the generated CRD validation, having it as a subset simplifies the API and some issues that can impact user experience.
During the [upgrade to controller-tools@v2](https://github.com/kubernetes-sigs/cluster-api/pull/1054) for v1alpha2, we noticed a failure would occur running Cluster API test suite against the new CRDs, specifically `spec.metadata.creationTimestamp in body must be of type string: "null"`. The investigation showed that `controller-tools@v2` behaves differently than its previous version when handling types from metav1(k8s.io/apimachinery/pkg/apis/meta/v1) package.
In more details, we found that embedded (non-top level) types that embedded `metav1.ObjectMeta` had validation properties, including for `creationTimestamp` (metav1.Time). The `metav1.Time` type specifies a custom json marshaller that, when IsZero() is true, returns `null` which breaks validation because the field isn't marked as nullable.
In future versions, controller-tools@v2 might allow overriding the type and validation for embedded types. When that happens, this hack should be revisited.
func (*ObjectMeta) DeepCopy ¶
func (in *ObjectMeta) DeepCopy() *ObjectMeta
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMeta.
func (*ObjectMeta) DeepCopyInto ¶
func (in *ObjectMeta) DeepCopyInto(out *ObjectMeta)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UnhealthyCondition ¶
type UnhealthyCondition struct {
// type of Node condition
// +kubebuilder:validation:Type=string
// +kubebuilder:validation:MinLength=1
Type corev1.NodeConditionType `json:"type"`
// status of the condition, one of True, False, Unknown.
// +kubebuilder:validation:Type=string
// +kubebuilder:validation:MinLength=1
Status corev1.ConditionStatus `json:"status"`
// timeout is the duration that a node must be in a given status for,
// after which the node is considered unhealthy.
// For example, with a value of "1h", the node must match the status
// for at least 1 hour before being considered unhealthy.
Timeout metav1.Duration `json:"timeout"`
}
UnhealthyCondition represents a Node condition type and value with a timeout specified as a duration. When the named condition has been in the given status for at least the timeout value, a node is considered unhealthy.
func (*UnhealthyCondition) DeepCopy ¶
func (in *UnhealthyCondition) DeepCopy() *UnhealthyCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnhealthyCondition.
func (*UnhealthyCondition) DeepCopyInto ¶
func (in *UnhealthyCondition) DeepCopyInto(out *UnhealthyCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files
¶
- cluster_phase_types.go
- cluster_types.go
- common_types.go
- condition_consts.go
- condition_types.go
- conversion.go
- doc.go
- groupversion_info.go
- machine_phase_types.go
- machine_types.go
- machinedeployment_types.go
- machinehealthcheck_types.go
- machinepool_types.go
- machineset_types.go
- zz_generated.conversion.go
- zz_generated.deepcopy.go