@@ -18,40 +18,100 @@ package v1beta1
18
18
19
19
import clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
20
20
21
- // Conditions that will be used for the KubeadmControlPlane object in v1Beta2 API version.
21
+ // KubeadmControlPlane's Available condition and corresponding reasons that will be used in v1Beta2 API version.
22
22
const (
23
23
// KubeadmControlPlaneAvailableV1Beta2Condition True if the control plane can be reached, EtcdClusterAvailable is true,
24
24
// and CertificatesAvailable is true.
25
25
KubeadmControlPlaneAvailableV1Beta2Condition = clusterv1 .AvailableV1Beta2Condition
26
+ )
26
27
28
+ // KubeadmControlPlane's CertificatesAvailable condition and corresponding reasons that will be used in v1Beta2 API version.
29
+ const (
27
30
// KubeadmControlPlaneCertificatesAvailableV1Beta2Condition True if all the cluster certificates exist.
28
31
KubeadmControlPlaneCertificatesAvailableV1Beta2Condition = "CertificatesAvailable"
29
32
33
+ // KubeadmControlPlaneCertificatesInternalErrorV1Beta2Reason surfaces unexpected failures when reconciling cluster certificates.
34
+ KubeadmControlPlaneCertificatesInternalErrorV1Beta2Reason = clusterv1 .InternalErrorV1Beta2Reason
35
+
36
+ // KubeadmControlPlaneCertificatesAvailableV1Beta2Reason surfaces when cluster certificates are available,
37
+ // no matter if those certificates have been provided by the user or generated by KubeadmControlPlane itself.
38
+ // Cluster certificates includes: certificates authorities for ca, sa, front-proxy, etcd, and if external etcd is used,
39
+ // also the apiserver-etcd-client client certificate.
40
+ KubeadmControlPlaneCertificatesAvailableV1Beta2Reason = clusterv1 .AvailableV1Beta2Condition
41
+ )
42
+
43
+ // KubeadmControlPlane's EtcdClusterAvailable condition and corresponding reasons that will be used in v1Beta2 API version.
44
+ const (
30
45
// KubeadmControlPlaneEtcdClusterAvailableV1Beta2Condition surfaces issues to the managed etcd cluster, if any.
31
46
// It is computed as aggregation of Machines's EtcdMemberHealthy (if not using an external etcd) conditions plus
32
47
// additional checks validating potential issues to etcd quorum.
33
48
KubeadmControlPlaneEtcdClusterAvailableV1Beta2Condition = "EtcdClusterAvailable"
49
+ )
34
50
51
+ // KubeadmControlPlane's MachinesReady condition and corresponding reasons that will be used in v1Beta2 API version.
52
+ const (
35
53
// KubeadmControlPlaneMachinesReadyV1Beta2Condition surfaces detail of issues on the controlled machines, if any.
36
54
// Please note this will include also APIServerPodHealthy, ControllerManagerPodHealthy, SchedulerPodHealthy conditions.
37
55
// If not using an external etcd also EtcdPodHealthy, EtcdMemberHealthy conditions are included.
38
56
KubeadmControlPlaneMachinesReadyV1Beta2Condition = clusterv1 .MachinesReadyV1Beta2Condition
57
+ )
39
58
59
+ // KubeadmControlPlane's MachinesUpToDate condition and corresponding reasons that will be used in v1Beta2 API version.
60
+ const (
40
61
// KubeadmControlPlaneMachinesUpToDateV1Beta2Condition surfaces details of controlled machines not up to date, if any.
41
62
KubeadmControlPlaneMachinesUpToDateV1Beta2Condition = clusterv1 .MachinesUpToDateV1Beta2Condition
63
+ )
42
64
65
+ // KubeadmControlPlane's ScalingUp condition and corresponding reasons that will be used in v1Beta2 API version.
66
+ const (
43
67
// KubeadmControlPlaneScalingUpV1Beta2Condition is true if available replicas < desired replicas.
44
68
KubeadmControlPlaneScalingUpV1Beta2Condition = clusterv1 .ScalingUpV1Beta2Condition
69
+ )
45
70
71
+ // KubeadmControlPlane's ScalingDown condition and corresponding reasons that will be used in v1Beta2 API version.
72
+ const (
46
73
// KubeadmControlPlaneScalingDownV1Beta2Condition is true if replicas > desired replicas.
47
74
KubeadmControlPlaneScalingDownV1Beta2Condition = clusterv1 .ScalingDownV1Beta2Condition
75
+ )
48
76
77
+ // KubeadmControlPlane's Remediating condition and corresponding reasons that will be used in v1Beta2 API version.
78
+ const (
49
79
// KubeadmControlPlaneRemediatingV1Beta2Condition surfaces details about ongoing remediation of the controlled machines, if any.
50
80
KubeadmControlPlaneRemediatingV1Beta2Condition = clusterv1 .RemediatingV1Beta2Condition
81
+ )
82
+
83
+ // Reasons that will be used for the OwnerRemediated condition set by MachineHealthCheck on KubeadmControlPlane controlled machines
84
+ // being remediated in v1Beta2 API version.
85
+ const (
86
+ // KubeadmControlPlaneMachineRemediationInternalErrorV1Beta2Reason surfaces unexpected failures while remediation a control plane machine.
87
+ KubeadmControlPlaneMachineRemediationInternalErrorV1Beta2Reason = clusterv1 .InternalErrorV1Beta2Reason
88
+
89
+ // KubeadmControlPlaneMachineCannotBeRemediatedV1Beta2Reason surfaces when remediation of a control plane machine can't be completed.
90
+ KubeadmControlPlaneMachineCannotBeRemediatedV1Beta2Reason = "CannotRemediate"
91
+
92
+ // KubeadmControlPlaneMachineRemediationDeferredV1Beta2Reason surfaces when remediation of a control plane machine must be deferred.
93
+ KubeadmControlPlaneMachineRemediationDeferredV1Beta2Reason = "RemediationDeferred"
51
94
95
+ // KubeadmControlPlaneMachineRemediationDoneV1Beta2Reason surfaces when remediation of a control plane machine has been completed.
96
+ // Note: After an unhealthy machine is deleted, a new one is created by the KubeadmControlPlaneMachine as part of the
97
+ // regular reconcile loop that ensures the correct number of replicas exist; KubeadmControlPlaneMachine waits for
98
+ // the new machine to exists before removing the controlplane.cluster.x-k8s.io/remediation-in-progress annotation.
99
+ // This is part of a series of safeguards to ensure that operation are performed sequentially on control plane machines.
100
+ KubeadmControlPlaneMachineRemediationDoneV1Beta2Reason = "MachineDeleted"
101
+
102
+ // KubeadmControlPlaneMachineRemediationDInternalErrorV1Beta2Reason surfaces unexpected failures when remediating
103
+ // a KubeadmControlPlane controlled machine.
104
+ KubeadmControlPlaneMachineRemediationDInternalErrorV1Beta2Reason = clusterv1 .InternalErrorV1Beta2Reason
105
+ )
106
+
107
+ // KubeadmControlPlane's Deleting condition and corresponding reasons that will be used in v1Beta2 API version.
108
+ const (
52
109
// KubeadmControlPlaneDeletingV1Beta2Condition surfaces details about ongoing deletion of the controlled machines.
53
110
KubeadmControlPlaneDeletingV1Beta2Condition = clusterv1 .DeletingV1Beta2Condition
111
+ )
54
112
113
+ // KubeadmControlPlane's Paused condition and corresponding reasons that will be used in v1Beta2 API version.
114
+ const (
55
115
// KubeadmControlPlanePausedV1Beta2Condition is true if this resource or the Cluster it belongs to are paused.
56
116
KubeadmControlPlanePausedV1Beta2Condition = clusterv1 .PausedV1Beta2Condition
57
117
)
0 commit comments