From 0192b3deb303f156e6b90e91ebedc6a7bb7b1943 Mon Sep 17 00:00:00 2001 From: gizquierdo Date: Mon, 25 Mar 2024 09:26:20 +0100 Subject: [PATCH] K8s-9372: Update comment for deletion policy --- pkg/apis/cluster/v1alpha1/machineset_types.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/apis/cluster/v1alpha1/machineset_types.go b/pkg/apis/cluster/v1alpha1/machineset_types.go index 101853b13..5898631b0 100644 --- a/pkg/apis/cluster/v1alpha1/machineset_types.go +++ b/pkg/apis/cluster/v1alpha1/machineset_types.go @@ -100,10 +100,9 @@ const ( // It then prioritizes the oldest Machines for deletion based on the Machine's CreationTimestamp. OldestMachineSetDeletePolicy MachineSetDeletePolicy = "Oldest" - // CustomMachineSetDeletePolicy prioritizes both Machines that have the annotation - // "cluster.k8s.io/delete-machine=yes" and Machines that are unhealthy - // (Status.ErrorReason or Status.ErrorMessage are set to a non-empty value). - // If then prioritizes the machine with Status different from Ready. + // CustomMachineSetDeletePolicy prioritizes deletion of newer machines or the ones + // that are with a different status than "Ready". If then prioritizes the deletion + // of machines that have errors or deletion annotations added. CustomMachineSetDeletePolicy MachineSetDeletePolicy = "Custom" )