Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the kubeadm v1beta1 API group +kubebuilder:object:generate=true +groupName=controlplane.cluster.x-k8s.io
Index ¶
- Constants
- Variables
- type KubeadmControlPlane
- func (in *KubeadmControlPlane) DeepCopy() *KubeadmControlPlane
- func (in *KubeadmControlPlane) DeepCopyInto(out *KubeadmControlPlane)
- func (in *KubeadmControlPlane) DeepCopyObject() runtime.Object
- func (in *KubeadmControlPlane) GetConditions() clusterv1.Conditions
- func (in *KubeadmControlPlane) GetV1Beta2Conditions() []metav1.Condition
- func (*KubeadmControlPlane) Hub()
- func (in *KubeadmControlPlane) SetConditions(conditions clusterv1.Conditions)
- func (in *KubeadmControlPlane) SetV1Beta2Conditions(conditions []metav1.Condition)
- type KubeadmControlPlaneList
- type KubeadmControlPlaneMachineTemplate
- type KubeadmControlPlaneSpec
- type KubeadmControlPlaneStatus
- type KubeadmControlPlaneTemplate
- type KubeadmControlPlaneTemplateList
- func (in *KubeadmControlPlaneTemplateList) DeepCopy() *KubeadmControlPlaneTemplateList
- func (in *KubeadmControlPlaneTemplateList) DeepCopyInto(out *KubeadmControlPlaneTemplateList)
- func (in *KubeadmControlPlaneTemplateList) DeepCopyObject() runtime.Object
- func (*KubeadmControlPlaneTemplateList) Hub()
- type KubeadmControlPlaneTemplateMachineTemplate
- type KubeadmControlPlaneTemplateResource
- type KubeadmControlPlaneTemplateResourceSpec
- type KubeadmControlPlaneTemplateSpec
- type KubeadmControlPlaneV1Beta2Status
- type LastRemediationStatus
- type MachineNamingStrategy
- type RemediationStrategy
- type RollingUpdate
- type RolloutBefore
- type RolloutStrategy
- type RolloutStrategyType
Constants ¶
const ( // CertificatesAvailableCondition documents that cluster certificates were generated as part of the // processing of a KubeadmControlPlane object. CertificatesAvailableCondition clusterv1.ConditionType = "CertificatesAvailable" // CertificatesGenerationFailedReason (Severity=Warning) documents a KubeadmControlPlane controller detecting // an error while generating certificates; those kind of errors are usually temporary and the controller // automatically recover from them. CertificatesGenerationFailedReason = "CertificatesGenerationFailed" )
const ( // AvailableCondition documents that the first control plane instance has completed the kubeadm init operation // and so the control plane is available and an API server instance is ready for processing requests. AvailableCondition clusterv1.ConditionType = "Available" // WaitingForKubeadmInitReason (Severity=Info) documents a KubeadmControlPlane object waiting for the first // control plane instance to complete the kubeadm init operation. WaitingForKubeadmInitReason = "WaitingForKubeadmInit" )
const ( // MachinesSpecUpToDateCondition documents that the spec of the machines controlled by the KubeadmControlPlane // is up to date. When this condition is false, the KubeadmControlPlane is executing a rolling upgrade. MachinesSpecUpToDateCondition clusterv1.ConditionType = "MachinesSpecUpToDate" // RollingUpdateInProgressReason (Severity=Warning) documents a KubeadmControlPlane object executing a // rolling upgrade for aligning the machines spec to the desired state. RollingUpdateInProgressReason = "RollingUpdateInProgress" )
const ( // ResizedCondition documents a KubeadmControlPlane that is resizing the set of controlled machines. ResizedCondition clusterv1.ConditionType = "Resized" // ScalingUpReason (Severity=Info) documents a KubeadmControlPlane that is increasing the number of replicas. ScalingUpReason = "ScalingUp" // ScalingDownReason (Severity=Info) documents a KubeadmControlPlane that is decreasing the number of replicas. ScalingDownReason = "ScalingDown" )
const ( // ControlPlaneComponentsHealthyCondition reports the overall status of control plane components // implemented as static pods generated by kubeadm including kube-api-server, kube-controller manager, // kube-scheduler and etcd if managed. ControlPlaneComponentsHealthyCondition clusterv1.ConditionType = "ControlPlaneComponentsHealthy" // ControlPlaneComponentsUnhealthyReason (Severity=Error) documents a control plane component not healthy. ControlPlaneComponentsUnhealthyReason = "ControlPlaneComponentsUnhealthy" // ControlPlaneComponentsUnknownReason reports a control plane component in unknown status. ControlPlaneComponentsUnknownReason = "ControlPlaneComponentsUnknown" // ControlPlaneComponentsInspectionFailedReason documents a failure in inspecting the control plane component status. ControlPlaneComponentsInspectionFailedReason = "ControlPlaneComponentsInspectionFailed" // MachineAPIServerPodHealthyCondition reports a machine's kube-apiserver's operational status. MachineAPIServerPodHealthyCondition clusterv1.ConditionType = "APIServerPodHealthy" // MachineControllerManagerPodHealthyCondition reports a machine's kube-controller-manager's health status. MachineControllerManagerPodHealthyCondition clusterv1.ConditionType = "ControllerManagerPodHealthy" // MachineSchedulerPodHealthyCondition reports a machine's kube-scheduler's operational status. MachineSchedulerPodHealthyCondition clusterv1.ConditionType = "SchedulerPodHealthy" // MachineEtcdPodHealthyCondition reports a machine's etcd pod's operational status. // NOTE: This conditions exists only if a stacked etcd cluster is used. MachineEtcdPodHealthyCondition clusterv1.ConditionType = "EtcdPodHealthy" // PodProvisioningReason (Severity=Info) documents a pod waiting to be provisioned i.e., Pod is in "Pending" phase. PodProvisioningReason = "PodProvisioning" // PodMissingReason (Severity=Error) documents a pod does not exist. PodMissingReason = "PodMissing" // PodFailedReason (Severity=Error) documents if a pod failed during provisioning i.e., e.g CrashLoopbackOff, ImagePullBackOff // or if all the containers in a pod have terminated. PodFailedReason = "PodFailed" // PodInspectionFailedReason documents a failure in inspecting the pod status. PodInspectionFailedReason = "PodInspectionFailed" )
const ( // EtcdClusterHealthyCondition documents the overall etcd cluster's health. EtcdClusterHealthyCondition clusterv1.ConditionType = "EtcdClusterHealthy" // EtcdClusterInspectionFailedReason documents a failure in inspecting the etcd cluster status. EtcdClusterInspectionFailedReason = "EtcdClusterInspectionFailed" // EtcdClusterUnknownReason reports an etcd cluster in unknown status. EtcdClusterUnknownReason = "EtcdClusterUnknown" // EtcdClusterUnhealthyReason (Severity=Error) is set when the etcd cluster is unhealthy. EtcdClusterUnhealthyReason = "EtcdClusterUnhealthy" // MachineEtcdMemberHealthyCondition report the machine's etcd member's health status. // NOTE: This conditions exists only if a stacked etcd cluster is used. MachineEtcdMemberHealthyCondition clusterv1.ConditionType = "EtcdMemberHealthy" // EtcdMemberInspectionFailedReason documents a failure in inspecting the etcd member status. EtcdMemberInspectionFailedReason = "MemberInspectionFailed" // EtcdMemberUnhealthyReason (Severity=Error) documents a Machine's etcd member is unhealthy. EtcdMemberUnhealthyReason = "EtcdMemberUnhealthy" // MachinesCreatedCondition documents that the machines controlled by the KubeadmControlPlane are created. // When this condition is false, it indicates that there was an error when cloning the infrastructure/bootstrap template or // when generating the machine object. MachinesCreatedCondition clusterv1.ConditionType = "MachinesCreated" // InfrastructureTemplateCloningFailedReason (Severity=Error) documents a KubeadmControlPlane failing to // clone the infrastructure template. InfrastructureTemplateCloningFailedReason = "InfrastructureTemplateCloningFailed" // BootstrapTemplateCloningFailedReason (Severity=Error) documents a KubeadmControlPlane failing to // clone the bootstrap template. BootstrapTemplateCloningFailedReason = "BootstrapTemplateCloningFailed" // MachineGenerationFailedReason (Severity=Error) documents a KubeadmControlPlane failing to // generate a machine object. MachineGenerationFailedReason = "MachineGenerationFailed" )
const ( // KubeadmControlPlaneFinalizer is the finalizer applied to KubeadmControlPlane resources // by its managing controller. KubeadmControlPlaneFinalizer = "kubeadm.controlplane.cluster.x-k8s.io" // SkipCoreDNSAnnotation annotation explicitly skips reconciling CoreDNS if set. SkipCoreDNSAnnotation = "controlplane.cluster.x-k8s.io/skip-coredns" // SkipKubeProxyAnnotation annotation explicitly skips reconciling kube-proxy if set. SkipKubeProxyAnnotation = "controlplane.cluster.x-k8s.io/skip-kube-proxy" // KubeadmClusterConfigurationAnnotation is a machine annotation that stores the json-marshalled string of KCP ClusterConfiguration. // This annotation is used to detect any changes in ClusterConfiguration and trigger machine rollout in KCP. KubeadmClusterConfigurationAnnotation = "controlplane.cluster.x-k8s.io/kubeadm-cluster-configuration" // RemediationInProgressAnnotation is used to keep track that a KCP remediation is in progress, and more // specifically it tracks that the system is in between having deleted an unhealthy machine and recreating its replacement. // NOTE: if something external to CAPI removes this annotation the system cannot detect the above situation; this can lead to // failures in updating remediation retry or remediation count (both counters restart from zero). RemediationInProgressAnnotation = "controlplane.cluster.x-k8s.io/remediation-in-progress" // RemediationForAnnotation is used to link a new machine to the unhealthy machine it is replacing; // please note that in case of retry, when also the remediating machine fails, the system keeps track of // the first machine of the sequence only. // NOTE: if something external to CAPI removes this annotation the system this can lead to // failures in updating remediation retry (the counter restarts from zero). RemediationForAnnotation = "controlplane.cluster.x-k8s.io/remediation-for" // PreTerminateHookCleanupAnnotation is the annotation KCP sets on Machines to ensure it can later remove the // etcd member right before Machine termination (i.e. before InfraMachine deletion). // Note: Starting with Kubernetes v1.31 this hook will wait for all other pre-terminate hooks to finish to // ensure it runs last (thus ensuring that kubelet is still working while other pre-terminate hooks run). PreTerminateHookCleanupAnnotation = clusterv1.PreTerminateDeleteHookAnnotationPrefix + "/kcp-cleanup" // DefaultMinHealthyPeriod defines the default minimum period before we consider a remediation on a // machine unrelated from the previous remediation. DefaultMinHealthyPeriod = 1 * time.Hour )
const ( // KubeadmControlPlaneAvailableV1Beta2Condition is true if KubeadmControlPlane is not deleted, `CertificatesAvailable` is true, // at least one Machine with healthy control plane components, and etcd has enough operational members to meet quorum requirements. // More specifically, considering how kubeadm layouts components: // - Kubernetes API server, scheduler and controller manager health is inferred by the status of // the corresponding Pods hosted on each machine. // - In case of managed etcd, also a healthy etcd Pod and a healthy etcd member must exist on the same // machine with the healthy Kubernetes API server, scheduler and controller manager, otherwise the k8s control // plane cannot be considered operational (if etcd is not operational on a machine, most likely also API server, // scheduler and controller manager on the same machine will be impacted). // - In case of external etcd, KCP cannot make any assumption on etcd status, so all the etcd checks are skipped. // // Please note that when this condition is true, partial unavailability will be surfaced in the condition message, // but with a 10s delay to ensure flakes do not impact condition stability. KubeadmControlPlaneAvailableV1Beta2Condition = clusterv1.AvailableV1Beta2Condition // KubeadmControlPlaneAvailableInspectionFailedV1Beta2Reason documents a failure when inspecting the status of the // etcd cluster hosted on KubeadmControlPlane controlled machines. KubeadmControlPlaneAvailableInspectionFailedV1Beta2Reason = clusterv1.InspectionFailedV1Beta2Reason // KubeadmControlPlaneAvailableV1Beta2Reason surfaces when the KubeadmControlPlane is available. KubeadmControlPlaneAvailableV1Beta2Reason = clusterv1.AvailableV1Beta2Reason // KubeadmControlPlaneNotAvailableV1Beta2Reason surfaces when the KubeadmControlPlane is not available. KubeadmControlPlaneNotAvailableV1Beta2Reason = clusterv1.NotAvailableV1Beta2Reason )
KubeadmControlPlane's Available condition and corresponding reasons that will be used in v1Beta2 API version.
const ( // KubeadmControlPlaneInitializedV1Beta2Condition is true when the control plane is functional enough to accept // requests. This information is usually used as a signal for starting all the provisioning operations that // depend on a functional API server, but do not require a full HA control plane to exist. KubeadmControlPlaneInitializedV1Beta2Condition = "Initialized" // KubeadmControlPlaneInitializedV1Beta2Reason surfaces when the control plane is initialized. KubeadmControlPlaneInitializedV1Beta2Reason = "Initialized" // KubeadmControlPlaneNotInitializedV1Beta2Reason surfaces when the control plane is not initialized. KubeadmControlPlaneNotInitializedV1Beta2Reason = "NotInitialized" )
KubeadmControlPlane's Initialized condition and corresponding reasons that will be used in v1Beta2 API version.
const ( // KubeadmControlPlaneCertificatesAvailableV1Beta2Condition True if all the cluster certificates exist. KubeadmControlPlaneCertificatesAvailableV1Beta2Condition = "CertificatesAvailable" // KubeadmControlPlaneCertificatesInternalErrorV1Beta2Reason surfaces unexpected failures when reconciling cluster certificates. KubeadmControlPlaneCertificatesInternalErrorV1Beta2Reason = clusterv1.InternalErrorV1Beta2Reason // KubeadmControlPlaneCertificatesAvailableV1Beta2Reason surfaces when cluster certificates are available, // no matter if those certificates have been provided by the user or generated by KubeadmControlPlane itself. // Cluster certificates include: certificate authorities for ca, sa, front-proxy, etcd, and if external etcd is used, // also the apiserver-etcd-client client certificate. KubeadmControlPlaneCertificatesAvailableV1Beta2Reason = clusterv1.AvailableV1Beta2Reason )
KubeadmControlPlane's CertificatesAvailable condition and corresponding reasons that will be used in v1Beta2 API version.
const ( // KubeadmControlPlaneEtcdClusterHealthyV1Beta2Condition surfaces issues to etcd cluster hosted on machines managed by this object. // It is computed as aggregation of Machine's EtcdMemberHealthy conditions plus additional checks validating // potential issues to etcd quorum. // Note: this condition is not set when using an external etcd. KubeadmControlPlaneEtcdClusterHealthyV1Beta2Condition = "EtcdClusterHealthy" // KubeadmControlPlaneEtcdClusterInspectionFailedV1Beta2Reason documents a failure when inspecting the status of the // etcd cluster hosted on KubeadmControlPlane controlled machines. KubeadmControlPlaneEtcdClusterInspectionFailedV1Beta2Reason = clusterv1.InspectionFailedV1Beta2Reason // KubeadmControlPlaneEtcdClusterConnectionDownV1Beta2Reason surfaces that the connection to the workload // cluster is down. KubeadmControlPlaneEtcdClusterConnectionDownV1Beta2Reason = clusterv1.ConnectionDownV1Beta2Reason // KubeadmControlPlaneEtcdClusterHealthyV1Beta2Reason surfaces when the etcd cluster hosted on KubeadmControlPlane // machines is healthy. KubeadmControlPlaneEtcdClusterHealthyV1Beta2Reason = "Healthy" // KubeadmControlPlaneEtcdClusterNotHealthyV1Beta2Reason surfaces when the etcd cluster hosted on KubeadmControlPlane // machines is not healthy. KubeadmControlPlaneEtcdClusterNotHealthyV1Beta2Reason = "NotHealthy" // KubeadmControlPlaneEtcdClusterHealthUnknownV1Beta2Reason surfaces when the health status of the etcd cluster hosted // on KubeadmControlPlane machines is unknown. KubeadmControlPlaneEtcdClusterHealthUnknownV1Beta2Reason = "HealthUnknown" )
KubeadmControlPlane's EtcdClusterHealthy condition and corresponding reasons that will be used in v1Beta2 API version.
const ( // KubeadmControlPlaneControlPlaneComponentsHealthyV1Beta2Condition surfaces issues to Kubernetes control plane components // hosted on machines managed by this object. It is computed as aggregation of Machine's `APIServerPodHealthy`, // `ControllerManagerPodHealthy`, `SchedulerPodHealthy`, `EtcdPodHealthy` conditions plus additional checks on // control plane machines and nodes. KubeadmControlPlaneControlPlaneComponentsHealthyV1Beta2Condition = "ControlPlaneComponentsHealthy" // KubeadmControlPlaneControlPlaneComponentsInspectionFailedV1Beta2Reason documents a failure when inspecting the status of the // control plane components hosted on KubeadmControlPlane controlled machines. KubeadmControlPlaneControlPlaneComponentsInspectionFailedV1Beta2Reason = clusterv1.InspectionFailedV1Beta2Reason // KubeadmControlPlaneControlPlaneComponentsConnectionDownV1Beta2Reason surfaces that the connection to the workload // cluster is down. KubeadmControlPlaneControlPlaneComponentsConnectionDownV1Beta2Reason = clusterv1.ConnectionDownV1Beta2Reason // KubeadmControlPlaneControlPlaneComponentsHealthyV1Beta2Reason surfaces when the Kubernetes control plane components // hosted on KubeadmControlPlane machines are healthy. KubeadmControlPlaneControlPlaneComponentsHealthyV1Beta2Reason = "Healthy" // KubeadmControlPlaneControlPlaneComponentsNotHealthyV1Beta2Reason surfaces when the Kubernetes control plane components // hosted on KubeadmControlPlane machines are not healthy. KubeadmControlPlaneControlPlaneComponentsNotHealthyV1Beta2Reason = "NotHealthy" // KubeadmControlPlaneControlPlaneComponentsHealthUnknownV1Beta2Reason surfaces when the health status of the // Kubernetes control plane components hosted on KubeadmControlPlane machines is unknown. KubeadmControlPlaneControlPlaneComponentsHealthUnknownV1Beta2Reason = "HealthUnknown" )
KubeadmControlPlane's ControlPlaneComponentsHealthy condition and corresponding reasons that will be used in v1Beta2 API version.
const ( // KubeadmControlPlaneMachinesReadyV1Beta2Condition surfaces detail of issues on the controlled machines, if any. // Please note this will include also APIServerPodHealthy, ControllerManagerPodHealthy, SchedulerPodHealthy conditions. // If not using an external etcd also EtcdPodHealthy, EtcdMemberHealthy conditions are included. KubeadmControlPlaneMachinesReadyV1Beta2Condition = clusterv1.MachinesReadyV1Beta2Condition // KubeadmControlPlaneMachinesReadyV1Beta2Reason surfaces when all the controlled machine's Ready conditions are true. KubeadmControlPlaneMachinesReadyV1Beta2Reason = clusterv1.ReadyV1Beta2Reason // KubeadmControlPlaneMachinesNotReadyV1Beta2Reason surfaces when at least one of the controlled machine's Ready conditions is false. KubeadmControlPlaneMachinesNotReadyV1Beta2Reason = clusterv1.NotReadyV1Beta2Reason // KubeadmControlPlaneMachinesReadyUnknownV1Beta2Reason surfaces when at least one of the controlled machine's Ready conditions is unknown // and no one of the controlled machine's Ready conditions is false. KubeadmControlPlaneMachinesReadyUnknownV1Beta2Reason = clusterv1.ReadyUnknownV1Beta2Reason // KubeadmControlPlaneMachinesReadyNoReplicasV1Beta2Reason surfaces when no machines exist for the KubeadmControlPlane. KubeadmControlPlaneMachinesReadyNoReplicasV1Beta2Reason = clusterv1.NoReplicasV1Beta2Reason // KubeadmControlPlaneMachinesReadyInternalErrorV1Beta2Reason surfaces unexpected failures when computing the MachinesReady condition. KubeadmControlPlaneMachinesReadyInternalErrorV1Beta2Reason = clusterv1.InternalErrorV1Beta2Reason )
KubeadmControlPlane's MachinesReady condition and corresponding reasons that will be used in v1Beta2 API version.
const ( // KubeadmControlPlaneMachinesUpToDateV1Beta2Condition surfaces details of controlled machines not up to date, if any. // Note: New machines are considered 10s after machine creation. This gives time to the machine's owner controller to recognize the new machine and add the UpToDate condition. KubeadmControlPlaneMachinesUpToDateV1Beta2Condition = clusterv1.MachinesUpToDateV1Beta2Condition // KubeadmControlPlaneMachinesUpToDateV1Beta2Reason surfaces when all the controlled machine's UpToDate conditions are true. KubeadmControlPlaneMachinesUpToDateV1Beta2Reason = clusterv1.UpToDateV1Beta2Reason // KubeadmControlPlaneMachinesNotUpToDateV1Beta2Reason surfaces when at least one of the controlled machine's UpToDate conditions is false. KubeadmControlPlaneMachinesNotUpToDateV1Beta2Reason = clusterv1.NotUpToDateV1Beta2Reason // KubeadmControlPlaneMachinesUpToDateUnknownV1Beta2Reason surfaces when at least one of the controlled machine's UpToDate conditions is unknown // and no one of the controlled machine's UpToDate conditions is false. KubeadmControlPlaneMachinesUpToDateUnknownV1Beta2Reason = clusterv1.UpToDateUnknownV1Beta2Reason // KubeadmControlPlaneMachinesUpToDateNoReplicasV1Beta2Reason surfaces when no machines exist for the KubeadmControlPlane. KubeadmControlPlaneMachinesUpToDateNoReplicasV1Beta2Reason = clusterv1.NoReplicasV1Beta2Reason // KubeadmControlPlaneMachinesUpToDateInternalErrorV1Beta2Reason surfaces unexpected failures when computing the MachinesUpToDate condition. KubeadmControlPlaneMachinesUpToDateInternalErrorV1Beta2Reason = clusterv1.InternalErrorV1Beta2Reason )
KubeadmControlPlane's MachinesUpToDate condition and corresponding reasons that will be used in v1Beta2 API version.
const ( // KubeadmControlPlaneRollingOutV1Beta2Condition is true if there is at least one machine not up-to-date. KubeadmControlPlaneRollingOutV1Beta2Condition = clusterv1.RollingOutV1Beta2Condition // KubeadmControlPlaneRollingOutV1Beta2Reason surfaces when there is at least one machine not up-to-date. KubeadmControlPlaneRollingOutV1Beta2Reason = clusterv1.RollingOutV1Beta2Reason // KubeadmControlPlaneNotRollingOutV1Beta2Reason surfaces when all the machines are up-to-date. KubeadmControlPlaneNotRollingOutV1Beta2Reason = clusterv1.NotRollingOutV1Beta2Reason )
KubeadmControlPlane's RollingOut condition and corresponding reasons that will be used in v1Beta2 API version.
const ( // KubeadmControlPlaneScalingUpV1Beta2Condition is true if actual replicas < desired replicas. // Note: In case a KubeadmControlPlane preflight check is preventing scale up, this will surface in the condition message. KubeadmControlPlaneScalingUpV1Beta2Condition = clusterv1.ScalingUpV1Beta2Condition // KubeadmControlPlaneScalingUpV1Beta2Reason surfaces when actual replicas < desired replicas. KubeadmControlPlaneScalingUpV1Beta2Reason = clusterv1.ScalingUpV1Beta2Reason // KubeadmControlPlaneNotScalingUpV1Beta2Reason surfaces when actual replicas >= desired replicas. KubeadmControlPlaneNotScalingUpV1Beta2Reason = clusterv1.NotScalingUpV1Beta2Reason // KubeadmControlPlaneScalingUpWaitingForReplicasSetV1Beta2Reason surfaces when the .spec.replicas // field of the KubeadmControlPlane is not set. KubeadmControlPlaneScalingUpWaitingForReplicasSetV1Beta2Reason = clusterv1.WaitingForReplicasSetV1Beta2Reason )
KubeadmControlPlane's ScalingUp condition and corresponding reasons that will be used in v1Beta2 API version.
const ( // KubeadmControlPlaneScalingDownV1Beta2Condition is true if actual replicas > desired replicas. // Note: In case a KubeadmControlPlane preflight check is preventing scale down, this will surface in the condition message. KubeadmControlPlaneScalingDownV1Beta2Condition = clusterv1.ScalingDownV1Beta2Condition // KubeadmControlPlaneScalingDownV1Beta2Reason surfaces when actual replicas > desired replicas. KubeadmControlPlaneScalingDownV1Beta2Reason = clusterv1.ScalingDownV1Beta2Reason // KubeadmControlPlaneNotScalingDownV1Beta2Reason surfaces when actual replicas <= desired replicas. KubeadmControlPlaneNotScalingDownV1Beta2Reason = clusterv1.NotScalingDownV1Beta2Reason // KubeadmControlPlaneScalingDownWaitingForReplicasSetV1Beta2Reason surfaces when the .spec.replicas // field of the KubeadmControlPlane is not set. KubeadmControlPlaneScalingDownWaitingForReplicasSetV1Beta2Reason = clusterv1.WaitingForReplicasSetV1Beta2Reason )
KubeadmControlPlane's ScalingDown condition and corresponding reasons that will be used in v1Beta2 API version.
const ( // KubeadmControlPlaneRemediatingV1Beta2Condition surfaces details about ongoing remediation of the controlled machines, if any. // Note: KubeadmControlPlane only remediates machines with HealthCheckSucceeded set to false and with the OwnerRemediated condition set to false. KubeadmControlPlaneRemediatingV1Beta2Condition = clusterv1.RemediatingV1Beta2Condition // KubeadmControlPlaneRemediatingV1Beta2Reason surfaces when the KubeadmControlPlane has at least one machine with HealthCheckSucceeded set to false // and with the OwnerRemediated condition set to false. KubeadmControlPlaneRemediatingV1Beta2Reason = clusterv1.RemediatingV1Beta2Reason // KubeadmControlPlaneNotRemediatingV1Beta2Reason surfaces when the KubeadmControlPlane does not have any machine with HealthCheckSucceeded set to false // and with the OwnerRemediated condition set to false. KubeadmControlPlaneNotRemediatingV1Beta2Reason = clusterv1.NotRemediatingV1Beta2Reason // KubeadmControlPlaneRemediatingInternalErrorV1Beta2Reason surfaces unexpected failures when computing the Remediating condition. KubeadmControlPlaneRemediatingInternalErrorV1Beta2Reason = clusterv1.InternalErrorV1Beta2Reason )
KubeadmControlPlane's Remediating condition and corresponding reasons that will be used in v1Beta2 API version.
const ( // KubeadmControlPlaneMachineRemediationInternalErrorV1Beta2Reason surfaces unexpected failures while remediating a control plane machine. KubeadmControlPlaneMachineRemediationInternalErrorV1Beta2Reason = clusterv1.InternalErrorV1Beta2Reason // KubeadmControlPlaneMachineCannotBeRemediatedV1Beta2Reason surfaces when remediation of a control plane machine can't be started. KubeadmControlPlaneMachineCannotBeRemediatedV1Beta2Reason = "CannotBeRemediated" // KubeadmControlPlaneMachineRemediationDeferredV1Beta2Reason surfaces when remediation of a control plane machine must be deferred. KubeadmControlPlaneMachineRemediationDeferredV1Beta2Reason = "RemediationDeferred" // KubeadmControlPlaneMachineRemediationMachineDeletingV1Beta2Reason surfaces when remediation of a control plane machine // has been completed by deleting the unhealthy machine. // Note: After an unhealthy machine is deleted, a new one is created by the KubeadmControlPlaneMachine as part of the // regular reconcile loop that ensures the correct number of replicas exist; KubeadmControlPlane machine waits for // the new machine to exists before removing the controlplane.cluster.x-k8s.io/remediation-in-progress annotation. // This is part of a series of safeguards to ensure that operation are performed sequentially on control plane machines. KubeadmControlPlaneMachineRemediationMachineDeletingV1Beta2Reason = "MachineDeleting" )
Reasons that will be used for the OwnerRemediated condition set by MachineHealthCheck on KubeadmControlPlane controlled machines being remediated in v1Beta2 API version.
const ( // KubeadmControlPlaneDeletingV1Beta2Condition surfaces details about ongoing deletion of the controlled machines. KubeadmControlPlaneDeletingV1Beta2Condition = clusterv1.DeletingV1Beta2Condition // KubeadmControlPlaneNotDeletingV1Beta2Reason surfaces when the KCP is not deleting because the // DeletionTimestamp is not set. KubeadmControlPlaneNotDeletingV1Beta2Reason = clusterv1.NotDeletingV1Beta2Reason // KubeadmControlPlaneDeletingWaitingForWorkersDeletionV1Beta2Reason surfaces when the KCP deletion // waits for the workers to be deleted. KubeadmControlPlaneDeletingWaitingForWorkersDeletionV1Beta2Reason = "WaitingForWorkersDeletion" // KubeadmControlPlaneDeletingWaitingForMachineDeletionV1Beta2Reason surfaces when the KCP deletion // waits for the control plane Machines to be deleted. KubeadmControlPlaneDeletingWaitingForMachineDeletionV1Beta2Reason = "WaitingForMachineDeletion" // KubeadmControlPlaneDeletingDeletionCompletedV1Beta2Reason surfaces when the KCP deletion has been completed. // This reason is set right after the `kubeadm.controlplane.cluster.x-k8s.io` finalizer is removed. // This means that the object will go away (i.e. be removed from etcd), except if there are other // finalizers on the KCP object. KubeadmControlPlaneDeletingDeletionCompletedV1Beta2Reason = clusterv1.DeletionCompletedV1Beta2Reason // KubeadmControlPlaneDeletingInternalErrorV1Beta2Reason surfaces unexpected failures when deleting a KCP object. KubeadmControlPlaneDeletingInternalErrorV1Beta2Reason = clusterv1.InternalErrorV1Beta2Reason )
KubeadmControlPlane's Deleting condition and corresponding reasons that will be used in v1Beta2 API version.
const ( // KubeadmControlPlaneMachineAPIServerPodHealthyV1Beta2Condition surfaces the status of the API server pod hosted on a KubeadmControlPlane controlled machine. KubeadmControlPlaneMachineAPIServerPodHealthyV1Beta2Condition = "APIServerPodHealthy" // KubeadmControlPlaneMachineControllerManagerPodHealthyV1Beta2Condition surfaces the status of the controller manager pod hosted on a KubeadmControlPlane controlled machine. KubeadmControlPlaneMachineControllerManagerPodHealthyV1Beta2Condition = "ControllerManagerPodHealthy" // KubeadmControlPlaneMachineSchedulerPodHealthyV1Beta2Condition surfaces the status of the scheduler pod hosted on a KubeadmControlPlane controlled machine. KubeadmControlPlaneMachineSchedulerPodHealthyV1Beta2Condition = "SchedulerPodHealthy" // KubeadmControlPlaneMachineEtcdPodHealthyV1Beta2Condition surfaces the status of the etcd pod hosted on a KubeadmControlPlane controlled machine. KubeadmControlPlaneMachineEtcdPodHealthyV1Beta2Condition = "EtcdPodHealthy" // KubeadmControlPlaneMachinePodRunningV1Beta2Reason surfaces a pod hosted on a KubeadmControlPlane controlled machine that is running. KubeadmControlPlaneMachinePodRunningV1Beta2Reason = "Running" // KubeadmControlPlaneMachinePodProvisioningV1Beta2Reason surfaces a pod hosted on a KubeadmControlPlane controlled machine // waiting to be provisioned i.e., Pod is in "Pending" phase. KubeadmControlPlaneMachinePodProvisioningV1Beta2Reason = "Provisioning" // KubeadmControlPlaneMachinePodDoesNotExistV1Beta2Reason surfaces a when a pod hosted on a KubeadmControlPlane controlled machine // does not exist. KubeadmControlPlaneMachinePodDoesNotExistV1Beta2Reason = "DoesNotExist" // KubeadmControlPlaneMachinePodFailedV1Beta2Reason surfaces a when a pod hosted on a KubeadmControlPlane controlled machine // failed during provisioning, e.g. CrashLoopBackOff, ImagePullBackOff or if all the containers in a pod have terminated. KubeadmControlPlaneMachinePodFailedV1Beta2Reason = "Failed" // KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason documents a failure when inspecting the status of a // pod hosted on a KubeadmControlPlane controlled machine. KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason = clusterv1.InspectionFailedV1Beta2Reason // KubeadmControlPlaneMachinePodConnectionDownV1Beta2Reason surfaces that the connection to the workload // cluster is down. KubeadmControlPlaneMachinePodConnectionDownV1Beta2Reason = clusterv1.ConnectionDownV1Beta2Reason // KubeadmControlPlaneMachinePodDeletingV1Beta2Reason surfaces when the machine hosting control plane components // is being deleted. KubeadmControlPlaneMachinePodDeletingV1Beta2Reason = "Deleting" )
APIServerPodHealthy, ControllerManagerPodHealthy, SchedulerPodHealthy and EtcdPodHealthy condition and corresponding reasons that will be used for KubeadmControlPlane controlled machines in v1Beta2 API version.
const ( // KubeadmControlPlaneMachineEtcdMemberHealthyV1Beta2Condition surfaces the status of the etcd member hosted on a KubeadmControlPlane controlled machine. KubeadmControlPlaneMachineEtcdMemberHealthyV1Beta2Condition = "EtcdMemberHealthy" // KubeadmControlPlaneMachineEtcdMemberNotHealthyV1Beta2Reason surfaces when the etcd member hosted on a KubeadmControlPlane controlled machine is not healthy. KubeadmControlPlaneMachineEtcdMemberNotHealthyV1Beta2Reason = "NotHealthy" // KubeadmControlPlaneMachineEtcdMemberHealthyV1Beta2Reason surfaces when the etcd member hosted on a KubeadmControlPlane controlled machine is healthy. KubeadmControlPlaneMachineEtcdMemberHealthyV1Beta2Reason = "Healthy" // KubeadmControlPlaneMachineEtcdMemberInspectionFailedV1Beta2Reason documents a failure when inspecting the status of an // etcd member hosted on a KubeadmControlPlane controlled machine. KubeadmControlPlaneMachineEtcdMemberInspectionFailedV1Beta2Reason = clusterv1.InspectionFailedV1Beta2Reason // KubeadmControlPlaneMachineEtcdMemberConnectionDownV1Beta2Reason surfaces that the connection to the workload // cluster is down. KubeadmControlPlaneMachineEtcdMemberConnectionDownV1Beta2Reason = clusterv1.ConnectionDownV1Beta2Reason // KubeadmControlPlaneMachineEtcdMemberDeletingV1Beta2Reason surfaces when the machine hosting an etcd member // is being deleted. KubeadmControlPlaneMachineEtcdMemberDeletingV1Beta2Reason = "Deleting" )
EtcdMemberHealthy condition and corresponding reasons that will be used for KubeadmControlPlane controlled machines in v1Beta2 API version.
const ( // MachinesReadyCondition reports an aggregate of current status of the machines controlled by the KubeadmControlPlane. MachinesReadyCondition clusterv1.ConditionType = "MachinesReady" )
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "controlplane.cluster.x-k8s.io", Version: "v1beta1"} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = schemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type KubeadmControlPlane ¶
type KubeadmControlPlane struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KubeadmControlPlaneSpec `json:"spec,omitempty"` Status KubeadmControlPlaneStatus `json:"status,omitempty"` }
KubeadmControlPlane is the Schema for the KubeadmControlPlane API.
func (*KubeadmControlPlane) DeepCopy ¶
func (in *KubeadmControlPlane) DeepCopy() *KubeadmControlPlane
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlane.
func (*KubeadmControlPlane) DeepCopyInto ¶
func (in *KubeadmControlPlane) DeepCopyInto(out *KubeadmControlPlane)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubeadmControlPlane) DeepCopyObject ¶
func (in *KubeadmControlPlane) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KubeadmControlPlane) GetConditions ¶
func (in *KubeadmControlPlane) GetConditions() clusterv1.Conditions
GetConditions returns the set of conditions for this object.
func (*KubeadmControlPlane) GetV1Beta2Conditions ¶ added in v1.9.0
func (in *KubeadmControlPlane) GetV1Beta2Conditions() []metav1.Condition
GetV1Beta2Conditions returns the set of conditions for this object.
func (*KubeadmControlPlane) Hub ¶
func (*KubeadmControlPlane) Hub()
func (*KubeadmControlPlane) SetConditions ¶
func (in *KubeadmControlPlane) SetConditions(conditions clusterv1.Conditions)
SetConditions sets the conditions on this object.
func (*KubeadmControlPlane) SetV1Beta2Conditions ¶ added in v1.9.0
func (in *KubeadmControlPlane) SetV1Beta2Conditions(conditions []metav1.Condition)
SetV1Beta2Conditions sets conditions for an API object.
type KubeadmControlPlaneList ¶
type KubeadmControlPlaneList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KubeadmControlPlane `json:"items"` }
KubeadmControlPlaneList contains a list of KubeadmControlPlane.
func (*KubeadmControlPlaneList) DeepCopy ¶
func (in *KubeadmControlPlaneList) DeepCopy() *KubeadmControlPlaneList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneList.
func (*KubeadmControlPlaneList) DeepCopyInto ¶
func (in *KubeadmControlPlaneList) DeepCopyInto(out *KubeadmControlPlaneList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubeadmControlPlaneList) DeepCopyObject ¶
func (in *KubeadmControlPlaneList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KubeadmControlPlaneList) Hub ¶
func (*KubeadmControlPlaneList) Hub()
type KubeadmControlPlaneMachineTemplate ¶
type KubeadmControlPlaneMachineTemplate struct { // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional ObjectMeta clusterv1.ObjectMeta `json:"metadata,omitempty"` // infrastructureRef is a required reference to a custom resource // offered by an infrastructure provider. InfrastructureRef corev1.ObjectReference `json:"infrastructureRef"` // nodeDrainTimeout is the total amount of time that the controller will spend on draining a controlplane 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"` // nodeVolumeDetachTimeout is the total amount of time that the controller will spend on waiting for all volumes // to be detached. The default value is 0, meaning that the volumes can be detached without any time limitations. // +optional NodeVolumeDetachTimeout *metav1.Duration `json:"nodeVolumeDetachTimeout,omitempty"` // nodeDeletionTimeout defines how long the machine controller will attempt to delete the Node that the Machine // hosts after the Machine is marked for deletion. A duration of 0 will retry deletion indefinitely. // If no value is provided, the default value for this property of the Machine resource will be used. // +optional NodeDeletionTimeout *metav1.Duration `json:"nodeDeletionTimeout,omitempty"` }
KubeadmControlPlaneMachineTemplate defines the template for Machines in a KubeadmControlPlane object.
func (*KubeadmControlPlaneMachineTemplate) DeepCopy ¶
func (in *KubeadmControlPlaneMachineTemplate) DeepCopy() *KubeadmControlPlaneMachineTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneMachineTemplate.
func (*KubeadmControlPlaneMachineTemplate) DeepCopyInto ¶
func (in *KubeadmControlPlaneMachineTemplate) DeepCopyInto(out *KubeadmControlPlaneMachineTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeadmControlPlaneSpec ¶
type KubeadmControlPlaneSpec struct { // Number of desired machines. Defaults to 1. When stacked etcd is used only // odd numbers are permitted, as per [etcd best practice](https://etcd.io/docs/v3.3.12/faq/#why-an-odd-number-of-cluster-members). // This is a pointer to distinguish between explicit zero and not specified. // +optional Replicas *int32 `json:"replicas,omitempty"` // version defines the desired Kubernetes version. // Please note that if kubeadmConfigSpec.ClusterConfiguration.imageRepository is not set // we don't allow upgrades to versions >= v1.22.0 for which kubeadm uses the old registry (k8s.gcr.io). // Please use a newer patch version with the new registry instead. The default registries of kubeadm are: // * registry.k8s.io (new registry): >= v1.22.17, >= v1.23.15, >= v1.24.9, >= v1.25.0 // * k8s.gcr.io (old registry): all older versions Version string `json:"version"` // machineTemplate contains information about how machines // should be shaped when creating or updating a control plane. MachineTemplate KubeadmControlPlaneMachineTemplate `json:"machineTemplate"` // kubeadmConfigSpec is a KubeadmConfigSpec // to use for initializing and joining machines to the control plane. KubeadmConfigSpec bootstrapv1.KubeadmConfigSpec `json:"kubeadmConfigSpec"` // rolloutBefore is a field to indicate a rollout should be performed // if the specified criteria is met. // +optional RolloutBefore *RolloutBefore `json:"rolloutBefore,omitempty"` // rolloutAfter is a field to indicate a rollout should be performed // after the specified time even if no changes have been made to the // KubeadmControlPlane. // Example: In the YAML the time can be specified in the RFC3339 format. // To specify the rolloutAfter target as March 9, 2023, at 9 am UTC // use "2023-03-09T09:00:00Z". // +optional RolloutAfter *metav1.Time `json:"rolloutAfter,omitempty"` // The RolloutStrategy to use to replace control plane machines with // new ones. // +optional // +kubebuilder:default={type: "RollingUpdate", rollingUpdate: {maxSurge: 1}} RolloutStrategy *RolloutStrategy `json:"rolloutStrategy,omitempty"` // The RemediationStrategy that controls how control plane machine remediation happens. // +optional RemediationStrategy *RemediationStrategy `json:"remediationStrategy,omitempty"` // MachineNamingStrategy allows changing the naming pattern used when creating Machines. // InfraMachines & KubeadmConfigs will use the same name as the corresponding Machines. // +optional MachineNamingStrategy *MachineNamingStrategy `json:"machineNamingStrategy,omitempty"` }
KubeadmControlPlaneSpec defines the desired state of KubeadmControlPlane.
func (*KubeadmControlPlaneSpec) DeepCopy ¶
func (in *KubeadmControlPlaneSpec) DeepCopy() *KubeadmControlPlaneSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneSpec.
func (*KubeadmControlPlaneSpec) DeepCopyInto ¶
func (in *KubeadmControlPlaneSpec) DeepCopyInto(out *KubeadmControlPlaneSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeadmControlPlaneStatus ¶
type KubeadmControlPlaneStatus struct { // selector is the label selector in string format to avoid introspection // by clients, and is used to provide the CRD-based integration for the // scale subresource and additional integrations for things like kubectl // describe.. 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"` // Total number of non-terminated machines targeted by this control plane // (their labels match the selector). // +optional Replicas int32 `json:"replicas"` // version represents the minimum Kubernetes version for the control plane machines // in the cluster. // +optional Version *string `json:"version,omitempty"` // Total number of non-terminated machines targeted by this control plane // that have the desired template spec. // +optional UpdatedReplicas int32 `json:"updatedReplicas"` // Total number of fully running and ready control plane machines. // +optional ReadyReplicas int32 `json:"readyReplicas"` // 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 ready or machines // that still have not been created. // // Deprecated: This field is deprecated and is going to be removed in the next apiVersion. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details. // // +optional UnavailableReplicas int32 `json:"unavailableReplicas"` // initialized denotes that the KubeadmControlPlane API Server is initialized and thus // it can accept requests. // NOTE: this field is part of the Cluster API contract and it is used to orchestrate provisioning. // The value of this field is never updated after provisioning is completed. Please use conditions // to check the operational state of the control plane. // +optional Initialized bool `json:"initialized"` // ready denotes that the KubeadmControlPlane API Server became ready during initial provisioning // to receive requests. // NOTE: this field is part of the Cluster API contract and it is used to orchestrate provisioning. // The value of this field is never updated after provisioning is completed. Please use conditions // to check the operational state of the control plane. // +optional Ready bool `json:"ready"` // failureReason indicates that there is a terminal problem reconciling the // state, and will be set to a token value suitable for // programmatic interpretation. // // Deprecated: This field is deprecated and is going to be removed in the next apiVersion. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details. // // +optional FailureReason errors.KubeadmControlPlaneStatusError `json:"failureReason,omitempty"` // ErrorMessage indicates that there is a terminal problem reconciling the // state, and will be set to a descriptive error message. // // Deprecated: This field is deprecated and is going to be removed in the next apiVersion. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details. // // +optional FailureMessage *string `json:"failureMessage,omitempty"` // observedGeneration is the latest generation observed by the controller. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // conditions defines current service state of the KubeadmControlPlane. // +optional Conditions clusterv1.Conditions `json:"conditions,omitempty"` // lastRemediation stores info about last remediation performed. // +optional LastRemediation *LastRemediationStatus `json:"lastRemediation,omitempty"` // v1beta2 groups all the fields that will be added or modified in KubeadmControlPlane's status with the V1Beta2 version. // +optional V1Beta2 *KubeadmControlPlaneV1Beta2Status `json:"v1beta2,omitempty"` }
KubeadmControlPlaneStatus defines the observed state of KubeadmControlPlane.
func (*KubeadmControlPlaneStatus) DeepCopy ¶
func (in *KubeadmControlPlaneStatus) DeepCopy() *KubeadmControlPlaneStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneStatus.
func (*KubeadmControlPlaneStatus) DeepCopyInto ¶
func (in *KubeadmControlPlaneStatus) DeepCopyInto(out *KubeadmControlPlaneStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeadmControlPlaneTemplate ¶
type KubeadmControlPlaneTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KubeadmControlPlaneTemplateSpec `json:"spec,omitempty"` }
KubeadmControlPlaneTemplate is the Schema for the kubeadmcontrolplanetemplates API.
func (*KubeadmControlPlaneTemplate) DeepCopy ¶
func (in *KubeadmControlPlaneTemplate) DeepCopy() *KubeadmControlPlaneTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneTemplate.
func (*KubeadmControlPlaneTemplate) DeepCopyInto ¶
func (in *KubeadmControlPlaneTemplate) DeepCopyInto(out *KubeadmControlPlaneTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubeadmControlPlaneTemplate) DeepCopyObject ¶
func (in *KubeadmControlPlaneTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KubeadmControlPlaneTemplate) Hub ¶
func (*KubeadmControlPlaneTemplate) Hub()
type KubeadmControlPlaneTemplateList ¶
type KubeadmControlPlaneTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KubeadmControlPlaneTemplate `json:"items"` }
KubeadmControlPlaneTemplateList contains a list of KubeadmControlPlaneTemplate.
func (*KubeadmControlPlaneTemplateList) DeepCopy ¶
func (in *KubeadmControlPlaneTemplateList) DeepCopy() *KubeadmControlPlaneTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneTemplateList.
func (*KubeadmControlPlaneTemplateList) DeepCopyInto ¶
func (in *KubeadmControlPlaneTemplateList) DeepCopyInto(out *KubeadmControlPlaneTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubeadmControlPlaneTemplateList) DeepCopyObject ¶
func (in *KubeadmControlPlaneTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KubeadmControlPlaneTemplateList) Hub ¶
func (*KubeadmControlPlaneTemplateList) Hub()
type KubeadmControlPlaneTemplateMachineTemplate ¶
type KubeadmControlPlaneTemplateMachineTemplate struct { // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional ObjectMeta clusterv1.ObjectMeta `json:"metadata,omitempty"` // nodeDrainTimeout is the total amount of time that the controller will spend on draining a controlplane 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"` // nodeVolumeDetachTimeout is the total amount of time that the controller will spend on waiting for all volumes // to be detached. The default value is 0, meaning that the volumes can be detached without any time limitations. // +optional NodeVolumeDetachTimeout *metav1.Duration `json:"nodeVolumeDetachTimeout,omitempty"` // nodeDeletionTimeout defines how long the machine controller will attempt to delete the Node that the Machine // hosts after the Machine is marked for deletion. A duration of 0 will retry deletion indefinitely. // If no value is provided, the default value for this property of the Machine resource will be used. // +optional NodeDeletionTimeout *metav1.Duration `json:"nodeDeletionTimeout,omitempty"` }
KubeadmControlPlaneTemplateMachineTemplate defines the template for Machines in a KubeadmControlPlaneTemplate object. NOTE: KubeadmControlPlaneTemplateMachineTemplate is similar to KubeadmControlPlaneMachineTemplate but omits ObjectMeta and InfrastructureRef fields. These fields do not make sense on the KubeadmControlPlaneTemplate, because they are calculated by the Cluster topology reconciler during reconciliation and thus cannot be configured on the KubeadmControlPlaneTemplate.
func (*KubeadmControlPlaneTemplateMachineTemplate) DeepCopy ¶
func (in *KubeadmControlPlaneTemplateMachineTemplate) DeepCopy() *KubeadmControlPlaneTemplateMachineTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneTemplateMachineTemplate.
func (*KubeadmControlPlaneTemplateMachineTemplate) DeepCopyInto ¶
func (in *KubeadmControlPlaneTemplateMachineTemplate) DeepCopyInto(out *KubeadmControlPlaneTemplateMachineTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeadmControlPlaneTemplateResource ¶
type KubeadmControlPlaneTemplateResource struct { // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional ObjectMeta clusterv1.ObjectMeta `json:"metadata,omitempty"` Spec KubeadmControlPlaneTemplateResourceSpec `json:"spec"` }
KubeadmControlPlaneTemplateResource describes the data needed to create a KubeadmControlPlane from a template.
func (*KubeadmControlPlaneTemplateResource) DeepCopy ¶
func (in *KubeadmControlPlaneTemplateResource) DeepCopy() *KubeadmControlPlaneTemplateResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneTemplateResource.
func (*KubeadmControlPlaneTemplateResource) DeepCopyInto ¶
func (in *KubeadmControlPlaneTemplateResource) DeepCopyInto(out *KubeadmControlPlaneTemplateResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeadmControlPlaneTemplateResourceSpec ¶
type KubeadmControlPlaneTemplateResourceSpec struct { // machineTemplate contains information about how machines // should be shaped when creating or updating a control plane. // +optional MachineTemplate *KubeadmControlPlaneTemplateMachineTemplate `json:"machineTemplate,omitempty"` // kubeadmConfigSpec is a KubeadmConfigSpec // to use for initializing and joining machines to the control plane. KubeadmConfigSpec bootstrapv1.KubeadmConfigSpec `json:"kubeadmConfigSpec"` // rolloutBefore is a field to indicate a rollout should be performed // if the specified criteria is met. // // +optional RolloutBefore *RolloutBefore `json:"rolloutBefore,omitempty"` // rolloutAfter is a field to indicate a rollout should be performed // after the specified time even if no changes have been made to the // KubeadmControlPlane. // // +optional RolloutAfter *metav1.Time `json:"rolloutAfter,omitempty"` // The RolloutStrategy to use to replace control plane machines with // new ones. // +optional // +kubebuilder:default={type: "RollingUpdate", rollingUpdate: {maxSurge: 1}} RolloutStrategy *RolloutStrategy `json:"rolloutStrategy,omitempty"` // The RemediationStrategy that controls how control plane machine remediation happens. // +optional RemediationStrategy *RemediationStrategy `json:"remediationStrategy,omitempty"` // MachineNamingStrategy allows changing the naming pattern used when creating Machines. // InfraMachines & KubeadmConfigs will use the same name as the corresponding Machines. // +optional MachineNamingStrategy *MachineNamingStrategy `json:"machineNamingStrategy,omitempty"` }
KubeadmControlPlaneTemplateResourceSpec defines the desired state of KubeadmControlPlane. NOTE: KubeadmControlPlaneTemplateResourceSpec is similar to KubeadmControlPlaneSpec but omits Replicas and Version fields. These fields do not make sense on the KubeadmControlPlaneTemplate, because they are calculated by the Cluster topology reconciler during reconciliation and thus cannot be configured on the KubeadmControlPlaneTemplate.
func (*KubeadmControlPlaneTemplateResourceSpec) DeepCopy ¶
func (in *KubeadmControlPlaneTemplateResourceSpec) DeepCopy() *KubeadmControlPlaneTemplateResourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneTemplateResourceSpec.
func (*KubeadmControlPlaneTemplateResourceSpec) DeepCopyInto ¶
func (in *KubeadmControlPlaneTemplateResourceSpec) DeepCopyInto(out *KubeadmControlPlaneTemplateResourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeadmControlPlaneTemplateSpec ¶
type KubeadmControlPlaneTemplateSpec struct {
Template KubeadmControlPlaneTemplateResource `json:"template"`
}
KubeadmControlPlaneTemplateSpec defines the desired state of KubeadmControlPlaneTemplate.
func (*KubeadmControlPlaneTemplateSpec) DeepCopy ¶
func (in *KubeadmControlPlaneTemplateSpec) DeepCopy() *KubeadmControlPlaneTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneTemplateSpec.
func (*KubeadmControlPlaneTemplateSpec) DeepCopyInto ¶
func (in *KubeadmControlPlaneTemplateSpec) DeepCopyInto(out *KubeadmControlPlaneTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeadmControlPlaneV1Beta2Status ¶ added in v1.9.0
type KubeadmControlPlaneV1Beta2Status struct { // conditions represents the observations of a KubeadmControlPlane's current state. // Known condition types are Available, CertificatesAvailable, EtcdClusterAvailable, MachinesReady, MachinesUpToDate, // ScalingUp, ScalingDown, Remediating, Deleting, Paused. // +optional // +listType=map // +listMapKey=type // +kubebuilder:validation:MaxItems=32 Conditions []metav1.Condition `json:"conditions,omitempty"` // readyReplicas is the number of ready replicas for this KubeadmControlPlane. A machine is considered ready when Machine's Ready condition is true. // +optional ReadyReplicas *int32 `json:"readyReplicas,omitempty"` // availableReplicas is the number of available replicas targeted by this KubeadmControlPlane. A machine is considered available when Machine's Available condition is true. // +optional AvailableReplicas *int32 `json:"availableReplicas,omitempty"` // upToDateReplicas is the number of up-to-date replicas targeted by this KubeadmControlPlane. A machine is considered up-to-date when Machine's UpToDate condition is true. // +optional UpToDateReplicas *int32 `json:"upToDateReplicas,omitempty"` }
KubeadmControlPlaneV1Beta2Status Groups all the fields that will be added or modified in KubeadmControlPlane with the V1Beta2 version. See https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more context.
func (*KubeadmControlPlaneV1Beta2Status) DeepCopy ¶ added in v1.9.0
func (in *KubeadmControlPlaneV1Beta2Status) DeepCopy() *KubeadmControlPlaneV1Beta2Status
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeadmControlPlaneV1Beta2Status.
func (*KubeadmControlPlaneV1Beta2Status) DeepCopyInto ¶ added in v1.9.0
func (in *KubeadmControlPlaneV1Beta2Status) DeepCopyInto(out *KubeadmControlPlaneV1Beta2Status)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LastRemediationStatus ¶ added in v1.4.0
type LastRemediationStatus struct { // machine is the machine name of the latest machine being remediated. Machine string `json:"machine"` // timestamp is when last remediation happened. It is represented in RFC3339 form and is in UTC. Timestamp metav1.Time `json:"timestamp"` // retryCount used to keep track of remediation retry for the last remediated machine. // A retry happens when a machine that was created as a replacement for an unhealthy machine also fails. RetryCount int32 `json:"retryCount"` }
LastRemediationStatus stores info about last remediation performed. NOTE: if for any reason information about last remediation are lost, RetryCount is going to restart from 0 and thus more remediations than expected might happen.
func (*LastRemediationStatus) DeepCopy ¶ added in v1.4.0
func (in *LastRemediationStatus) DeepCopy() *LastRemediationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LastRemediationStatus.
func (*LastRemediationStatus) DeepCopyInto ¶ added in v1.4.0
func (in *LastRemediationStatus) DeepCopyInto(out *LastRemediationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineNamingStrategy ¶ added in v1.9.0
type MachineNamingStrategy struct { // Template defines the template to use for generating the names of the Machine objects. // If not defined, it will fallback to `{{ .kubeadmControlPlane.name }}-{{ .random }}`. // If the generated name string exceeds 63 characters, it will be trimmed to 58 characters and will // get concatenated with a random suffix of length 5. // Length of the template string must not exceed 256 characters. // The template allows the following variables `.cluster.name`, `.kubeadmControlPlane.name` and `.random`. // The variable `.cluster.name` retrieves the name of the cluster object that owns the Machines being created. // The variable `.kubeadmControlPlane.name` retrieves the name of the KubeadmControlPlane object that owns the Machines being created. // The variable `.random` is substituted with random alphanumeric string, without vowels, of length 5. // +optional // +kubebuilder:validation:MaxLength=256 Template string `json:"template,omitempty"` }
MachineNamingStrategy allows changing the naming pattern used when creating Machines. InfraMachines & KubeadmConfigs will use the same name as the corresponding Machines.
func (*MachineNamingStrategy) DeepCopy ¶ added in v1.9.0
func (in *MachineNamingStrategy) DeepCopy() *MachineNamingStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineNamingStrategy.
func (*MachineNamingStrategy) DeepCopyInto ¶ added in v1.9.0
func (in *MachineNamingStrategy) DeepCopyInto(out *MachineNamingStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RemediationStrategy ¶ added in v1.4.0
type RemediationStrategy struct { // maxRetry is the Max number of retries while attempting to remediate an unhealthy machine. // A retry happens when a machine that was created as a replacement for an unhealthy machine also fails. // For example, given a control plane with three machines M1, M2, M3: // // M1 become unhealthy; remediation happens, and M1-1 is created as a replacement. // If M1-1 (replacement of M1) has problems while bootstrapping it will become unhealthy, and then be // remediated; such operation is considered a retry, remediation-retry #1. // If M1-2 (replacement of M1-1) becomes unhealthy, remediation-retry #2 will happen, etc. // // A retry could happen only after RetryPeriod from the previous retry. // If a machine is marked as unhealthy after MinHealthyPeriod from the previous remediation expired, // this is not considered a retry anymore because the new issue is assumed unrelated from the previous one. // // If not set, the remedation will be retried infinitely. // +optional MaxRetry *int32 `json:"maxRetry,omitempty"` // retryPeriod is the duration that KCP should wait before remediating a machine being created as a replacement // for an unhealthy machine (a retry). // // If not set, a retry will happen immediately. // +optional RetryPeriod metav1.Duration `json:"retryPeriod,omitempty"` // minHealthyPeriod defines the duration after which KCP will consider any failure to a machine unrelated // from the previous one. In this case the remediation is not considered a retry anymore, and thus the retry // counter restarts from 0. For example, assuming MinHealthyPeriod is set to 1h (default) // // M1 become unhealthy; remediation happens, and M1-1 is created as a replacement. // If M1-1 (replacement of M1) has problems within the 1hr after the creation, also // this machine will be remediated and this operation is considered a retry - a problem related // to the original issue happened to M1 -. // // If instead the problem on M1-1 is happening after MinHealthyPeriod expired, e.g. four days after // m1-1 has been created as a remediation of M1, the problem on M1-1 is considered unrelated to // the original issue happened to M1. // // If not set, this value is defaulted to 1h. // +optional MinHealthyPeriod *metav1.Duration `json:"minHealthyPeriod,omitempty"` }
RemediationStrategy allows to define how control plane machine remediation happens.
func (*RemediationStrategy) DeepCopy ¶ added in v1.4.0
func (in *RemediationStrategy) DeepCopy() *RemediationStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemediationStrategy.
func (*RemediationStrategy) DeepCopyInto ¶ added in v1.4.0
func (in *RemediationStrategy) DeepCopyInto(out *RemediationStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RollingUpdate ¶
type RollingUpdate struct { // The maximum number of control planes that can be scheduled above or under the // desired number of control planes. // Value can be an absolute number 1 or 0. // Defaults to 1. // Example: when this is set to 1, the control plane can be scaled // up immediately when the rolling update starts. // +optional MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty"` }
RollingUpdate is used to control the desired behavior of rolling update.
func (*RollingUpdate) DeepCopy ¶
func (in *RollingUpdate) DeepCopy() *RollingUpdate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdate.
func (*RollingUpdate) DeepCopyInto ¶
func (in *RollingUpdate) DeepCopyInto(out *RollingUpdate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RolloutBefore ¶ added in v1.3.0
type RolloutBefore struct { // certificatesExpiryDays indicates a rollout needs to be performed if the // certificates of the machine will expire within the specified days. // +optional CertificatesExpiryDays *int32 `json:"certificatesExpiryDays,omitempty"` }
RolloutBefore describes when a rollout should be performed on the KCP machines.
func (*RolloutBefore) DeepCopy ¶ added in v1.3.0
func (in *RolloutBefore) DeepCopy() *RolloutBefore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutBefore.
func (*RolloutBefore) DeepCopyInto ¶ added in v1.3.0
func (in *RolloutBefore) DeepCopyInto(out *RolloutBefore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RolloutStrategy ¶
type RolloutStrategy struct { // type of rollout. Currently the only supported strategy is // "RollingUpdate". // Default is RollingUpdate. // +optional Type RolloutStrategyType `json:"type,omitempty"` // Rolling update config params. Present only if // RolloutStrategyType = RollingUpdate. // +optional RollingUpdate *RollingUpdate `json:"rollingUpdate,omitempty"` }
RolloutStrategy describes how to replace existing machines with new ones.
func (*RolloutStrategy) DeepCopy ¶
func (in *RolloutStrategy) DeepCopy() *RolloutStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolloutStrategy.
func (*RolloutStrategy) DeepCopyInto ¶
func (in *RolloutStrategy) DeepCopyInto(out *RolloutStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RolloutStrategyType ¶
type RolloutStrategyType string
RolloutStrategyType defines the rollout strategies for a KubeadmControlPlane.
const ( // RollingUpdateStrategyType replaces the old control planes by new one using rolling update // i.e. gradually scale up or down the old control planes and scale up or down the new one. RollingUpdateStrategyType RolloutStrategyType = "RollingUpdate" )