@@ -77,6 +77,129 @@ const (
77
77
MachineDeploymentUniqueLabel = "machine-template-hash"
78
78
)
79
79
80
+ // MachineDeployment's Available condition and corresponding reasons that will be used in v1Beta2 API version.
81
+ const (
82
+ // MachineDeploymentAvailableV1Beta2Condition is true if the MachineDeployment is not deleted, and it has minimum
83
+ // availability according to parameters specified in the deployment strategy, e.g. If using RollingUpgrade strategy,
84
+ // availableReplicas must be greater or equal than desired replicas - MaxUnavailable replicas.
85
+ MachineDeploymentAvailableV1Beta2Condition = AvailableV1Beta2Condition
86
+
87
+ // MachineDeploymentAvailableWaitingForReplicasSetV1Beta2Reason surfaces when the .spec.replicas
88
+ // field of the MachineDeployment is not set.
89
+ MachineDeploymentAvailableWaitingForReplicasSetV1Beta2Reason = WaitingForReplicasSetV1Beta2Reason
90
+
91
+ // MachineDeploymentAvailableWaitingForAvailableReplicasSetV1Beta2Reason surfaces when the .status.v1beta2.availableReplicas
92
+ // field of the MachineDeployment is not set.
93
+ MachineDeploymentAvailableWaitingForAvailableReplicasSetV1Beta2Reason = "WaitingForAvailableReplicasSet"
94
+
95
+ // MachineDeploymentAvailableV1Beta2Reason surfaces when a Deployment is available.
96
+ MachineDeploymentAvailableV1Beta2Reason = AvailableV1Beta2Reason
97
+
98
+ // MachineDeploymentNotAvailableV1Beta2Reason surfaces when a Deployment is not available.
99
+ MachineDeploymentNotAvailableV1Beta2Reason = NotAvailableV1Beta2Reason
100
+
101
+ // MachineDeploymentAvailableInternalErrorV1Beta2Reason surfaces unexpected failures when computing the Available condition.
102
+ MachineDeploymentAvailableInternalErrorV1Beta2Reason = InternalErrorV1Beta2Reason
103
+ )
104
+
105
+ // MachineDeployment's MachinesReady condition and corresponding reasons that will be used in v1Beta2 API version.
106
+ const (
107
+ // MachineDeploymentMachinesReadyV1Beta2Condition surfaces detail of issues on the controlled machines, if any.
108
+ MachineDeploymentMachinesReadyV1Beta2Condition = MachinesReadyV1Beta2Condition
109
+
110
+ // MachineDeploymentMachinesReadyNoReplicasV1Beta2Reason surfaces when no machines exist for the MachineDeployment.
111
+ MachineDeploymentMachinesReadyNoReplicasV1Beta2Reason = NoReplicasV1Beta2Reason
112
+
113
+ // MachineDeploymentMachinesReadyInternalErrorV1Beta2Reason surfaces unexpected failures when listing machines
114
+ // or aggregating machine's conditions.
115
+ MachineDeploymentMachinesReadyInternalErrorV1Beta2Reason = InternalErrorV1Beta2Reason
116
+ )
117
+
118
+ // MachineDeployment's MachinesUpToDate condition and corresponding reasons that will be used in v1Beta2 API version.
119
+ const (
120
+ // MachineDeploymentMachinesUpToDateV1Beta2Condition surfaces details of controlled machines not up to date, if any.
121
+ MachineDeploymentMachinesUpToDateV1Beta2Condition = MachinesUpToDateV1Beta2Condition
122
+
123
+ // MachineDeploymentMachinesUpToDateNoReplicasV1Beta2Reason surfaces when no machines exist for the MachineDeployment.
124
+ MachineDeploymentMachinesUpToDateNoReplicasV1Beta2Reason = NoReplicasV1Beta2Reason
125
+
126
+ // MachineDeploymentMachinesUpToDateInternalErrorV1Beta2Reason surfaces unexpected failures when listing machines
127
+ // or aggregating status.
128
+ MachineDeploymentMachinesUpToDateInternalErrorV1Beta2Reason = InternalErrorV1Beta2Reason
129
+ )
130
+
131
+ // MachineDeployment's ScalingUp condition and corresponding reasons that will be used in v1Beta2 API version.
132
+ const (
133
+ // MachineDeploymentScalingUpV1Beta2Condition is true if available replicas < desired replicas.
134
+ MachineDeploymentScalingUpV1Beta2Condition = ScalingUpV1Beta2Condition
135
+
136
+ // MachineDeploymentScalingUpV1Beta2Reason surfaces when actual replicas < desired replicas.
137
+ MachineDeploymentScalingUpV1Beta2Reason = ScalingUpV1Beta2Reason
138
+
139
+ // MachineDeploymentNotScalingUpV1Beta2Reason surfaces when actual replicas >= desired replicas.
140
+ MachineDeploymentNotScalingUpV1Beta2Reason = NotScalingUpV1Beta2Reason
141
+
142
+ // MachineDeploymentScalingUpInternalErrorV1Beta2Reason surfaces unexpected failures when listing machines.
143
+ MachineDeploymentScalingUpInternalErrorV1Beta2Reason = InternalErrorV1Beta2Reason
144
+
145
+ // MachineDeploymentScalingUpWaitingForReplicasSetV1Beta2Reason surfaces when the .spec.replicas
146
+ // field of the MachineDeployment is not set.
147
+ MachineDeploymentScalingUpWaitingForReplicasSetV1Beta2Reason = WaitingForReplicasSetV1Beta2Reason
148
+ )
149
+
150
+ // MachineDeployment's ScalingDown condition and corresponding reasons that will be used in v1Beta2 API version.
151
+ const (
152
+ // MachineDeploymentScalingDownV1Beta2Condition is true if replicas > desired replicas.
153
+ MachineDeploymentScalingDownV1Beta2Condition = ScalingDownV1Beta2Condition
154
+
155
+ // MachineDeploymentScalingDownV1Beta2Reason surfaces when actual replicas > desired replicas.
156
+ MachineDeploymentScalingDownV1Beta2Reason = ScalingDownV1Beta2Reason
157
+
158
+ // MachineDeploymentNotScalingDownV1Beta2Reason surfaces when actual replicas <= desired replicas.
159
+ MachineDeploymentNotScalingDownV1Beta2Reason = NotScalingDownV1Beta2Reason
160
+
161
+ // MachineDeploymentScalingDownInternalErrorV1Beta2Reason surfaces unexpected failures when listing machines.
162
+ MachineDeploymentScalingDownInternalErrorV1Beta2Reason = InternalErrorV1Beta2Reason
163
+
164
+ // MachineDeploymentScalingDownWaitingForReplicasSetV1Beta2Reason surfaces when the .spec.replicas
165
+ // field of the MachineDeployment is not set.
166
+ MachineDeploymentScalingDownWaitingForReplicasSetV1Beta2Reason = WaitingForReplicasSetV1Beta2Reason
167
+ )
168
+
169
+ // MachineDeployment's Remediating condition and corresponding reasons that will be used in v1Beta2 API version.
170
+ const (
171
+ // MachineDeploymentRemediatingV1Beta2Condition details about ongoing remediation of the controlled machines, if any.
172
+ MachineDeploymentRemediatingV1Beta2Condition = RemediatingV1Beta2Condition
173
+
174
+ // MachineDeploymentRemediatingV1Beta2Reason surfaces when the MachineDeployment has at least one machine with HealthCheckSucceeded set to false
175
+ // and with the OwnerRemediated condition set to false.
176
+ MachineDeploymentRemediatingV1Beta2Reason = RemediatingV1Beta2Reason
177
+
178
+ // MachineDeploymentNotRemediatingV1Beta2Reason surfaces when the MachineDeployment does not have any machine with HealthCheckSucceeded set to false
179
+ // and with the OwnerRemediated condition set to false.
180
+ MachineDeploymentNotRemediatingV1Beta2Reason = NotRemediatingV1Beta2Reason
181
+
182
+ // MachineDeploymentRemediatingInternalErrorV1Beta2Reason surfaces unexpected failures when computing the Remediating condition.
183
+ MachineDeploymentRemediatingInternalErrorV1Beta2Reason = InternalErrorV1Beta2Reason
184
+ )
185
+
186
+ // MachineDeployment's Deleting condition and corresponding reasons that will be used in v1Beta2 API version.
187
+ const (
188
+ // MachineDeploymentDeletingV1Beta2Condition surfaces details about ongoing deletion of the controlled machines.
189
+ MachineDeploymentDeletingV1Beta2Condition = DeletingV1Beta2Condition
190
+
191
+ // MachineDeploymentDeletingDeletionTimestampNotSetV1Beta2Reason surfaces when the MachineDeployment is not deleting because the
192
+ // DeletionTimestamp is not set.
193
+ MachineDeploymentDeletingDeletionTimestampNotSetV1Beta2Reason = DeletionTimestampNotSetV1Beta2Reason
194
+
195
+ // MachineDeploymentDeletingDeletionTimestampSetV1Beta2Reason surfaces when the MachineDeployment is deleting because the
196
+ // DeletionTimestamp is set.
197
+ MachineDeploymentDeletingDeletionTimestampSetV1Beta2Reason = DeletionTimestampSetV1Beta2Reason
198
+
199
+ // MachineDeploymentDeletingInternalErrorV1Beta2Reason surfaces unexpected failures when deleting a MachineDeployment.
200
+ MachineDeploymentDeletingInternalErrorV1Beta2Reason = InternalErrorV1Beta2Reason
201
+ )
202
+
80
203
// ANCHOR: MachineDeploymentSpec
81
204
82
205
// MachineDeploymentSpec defines the desired state of MachineDeployment.
0 commit comments