@@ -196,6 +196,9 @@ const (
196
196
// MachineNodeConditionNotYetReportedV1Beta2Reason surfaces when a Machine's Node doesn't have a condition reported yet.
197
197
MachineNodeConditionNotYetReportedV1Beta2Reason = "NodeConditionNotYetReported"
198
198
199
+ // MachineNodeInternalErrorV1Beta2Reason surfaces unexpected failures when reading a Node object.
200
+ MachineNodeInternalErrorV1Beta2Reason = InternalErrorV1Beta2Reason
201
+
199
202
// MachineNodeDoesNotExistV1Beta2Reason surfaces when the node hosted on the machine does not exist.
200
203
// Note: this could happen when creating the machine. However, this state should be treated as an error if it lasts indefinitely.
201
204
MachineNodeDoesNotExistV1Beta2Reason = ObjectDoesNotExistV1Beta2Reason
@@ -204,6 +207,16 @@ const (
204
207
// Note: controllers can't identify if the Node was deleted by the controller itself, e.g.
205
208
// during the deletion workflow, or by a users.
206
209
MachineNodeDeletedV1Beta2Reason = ObjectDeletedV1Beta2Reason
210
+
211
+ // MachineNodeRemoteConnectionFailedV1Beta2Reason surfaces that the remote connection failed.
212
+ // If the remote connection probe failed for longer than remote conditions grace period,
213
+ // this reason is used when setting NodeHealthy and NodeReady conditions to `Unknown`.
214
+ MachineNodeRemoteConnectionFailedV1Beta2Reason = RemoteConnectionFailedV1Beta2Reason
215
+
216
+ // MachineNodeRemoteConnectionDownV1Beta2Reason surfaces that the remote connection is down.
217
+ // This is used when setting NodeHealthy and NodeReady conditions to `Unknown`
218
+ // when the connection is down and they haven't been set yet.
219
+ MachineNodeRemoteConnectionDownV1Beta2Reason = RemoteConnectionDownV1Beta2Reason
207
220
)
208
221
209
222
// Machine's HealthCheckSucceeded condition and corresponding reasons that will be used in v1Beta2 API version.
@@ -271,6 +284,57 @@ const (
271
284
const (
272
285
// MachineDeletingV1Beta2Condition surfaces details about progress in the machine deletion workflow.
273
286
MachineDeletingV1Beta2Condition = DeletingV1Beta2Condition
287
+
288
+ // MachineDeletingV1Beta2Reason surfaces when the Machine is deleting.
289
+ // This reason is only used for the MachineDeletingV1Beta2Condition when calculating the
290
+ // Ready condition when the deletionTimestamp on a Machine is set.
291
+ MachineDeletingV1Beta2Reason = "Deleting"
292
+
293
+ // MachineDeletingDeletionTimestampNotSetV1Beta2Reason surfaces when the Machine is not deleting because the
294
+ // DeletionTimestamp is not set.
295
+ MachineDeletingDeletionTimestampNotSetV1Beta2Reason = DeletionTimestampNotSetV1Beta2Reason
296
+
297
+ // MachineDeletingDeletionTimestampSetV1Beta2Reason surfaces when the Machine is deleting because the
298
+ // DeletionTimestamp is set. This reason is used if none of the more specific reasons apply.
299
+ MachineDeletingDeletionTimestampSetV1Beta2Reason = DeletionTimestampSetV1Beta2Reason
300
+
301
+ // MachineDeletingInternalErrorV1Beta2Reason surfaces unexpected failures when deleting a Machine.
302
+ MachineDeletingInternalErrorV1Beta2Reason = InternalErrorV1Beta2Reason
303
+
304
+ // MachineDeletingWaitingForPreDrainHookV1Beta2Reason surfaces when the Machine deletion
305
+ // waits for pre-drain hooks to complete. I.e. it waits until there are no annotations
306
+ // with the `pre-drain.delete.hook.machine.cluster.x-k8s.io` prefix on the Machine anymore.
307
+ MachineDeletingWaitingForPreDrainHookV1Beta2Reason = "WaitingForPreDrainHook"
308
+
309
+ // MachineDeletingDrainingNodeV1Beta2Reason surfaces when the Machine deletion is draining the Node.
310
+ MachineDeletingDrainingNodeV1Beta2Reason = "DrainingNode"
311
+
312
+ // MachineDeletingWaitingForVolumeDetachV1Beta2Reason surfaces when the Machine deletion is
313
+ // waiting for volumes to detach from the Node.
314
+ MachineDeletingWaitingForVolumeDetachV1Beta2Reason = "WaitingForVolumeDetach"
315
+
316
+ // MachineDeletingWaitingForPreTerminateHookV1Beta2Reason surfaces when the Machine deletion
317
+ // waits for pre-terminate hooks to complete. I.e. it waits until there are no annotations
318
+ // with the `pre-terminate.delete.hook.machine.cluster.x-k8s.io` prefix on the Machine anymore.
319
+ MachineDeletingWaitingForPreTerminateHookV1Beta2Reason = "WaitingForPreTerminateHook"
320
+
321
+ // MachineDeletingWaitingForInfrastructureDeletionV1Beta2Reason surfaces when the Machine deletion
322
+ // waits for InfraMachine deletion to complete.
323
+ MachineDeletingWaitingForInfrastructureDeletionV1Beta2Reason = "WaitingForInfrastructureDeletion"
324
+
325
+ // MachineDeletingWaitingForBootstrapDeletionV1Beta2Reason surfaces when the Machine deletion
326
+ // waits for BootstrapConfig deletion to complete.
327
+ MachineDeletingWaitingForBootstrapDeletionV1Beta2Reason = "WaitingForBootstrapDeletion"
328
+
329
+ // MachineDeletingDeletingNodeV1Beta2Reason surfaces when the Machine deletion is
330
+ // deleting the Node.
331
+ MachineDeletingDeletingNodeV1Beta2Reason = "DeletingNode"
332
+
333
+ // MachineDeletingDeletionCompletedV1Beta2Reason surfaces when the Machine deletion has been completed.
334
+ // This reason is set right after the `machine.cluster.x-k8s.io` finalizer is removed.
335
+ // This means that the object will go away (i.e. be removed from etcd), except if there are other
336
+ // finalizers on the Machine object.
337
+ MachineDeletingDeletionCompletedV1Beta2Reason = DeletionCompletedV1Beta2Reason
274
338
)
275
339
276
340
// ANCHOR: MachineSpec
0 commit comments