Skip to content

Commit

Permalink
K8s-9372: Update comment for deletion policy
Browse files Browse the repository at this point in the history
  • Loading branch information
gizquierdo-s11 committed Mar 25, 2024
1 parent 863e06d commit 0192b3d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/apis/cluster/v1alpha1/machineset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down

0 comments on commit 0192b3d

Please sign in to comment.