From d294cae5e283854769b3cfc1945f736687d941a8 Mon Sep 17 00:00:00 2001 From: gizquierdo Date: Fri, 22 Mar 2024 16:45:04 +0100 Subject: [PATCH] K8s-9372: Modify default delete policy --- pkg/apis/cluster/v1alpha1/machineset_types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/apis/cluster/v1alpha1/machineset_types.go b/pkg/apis/cluster/v1alpha1/machineset_types.go index 5340ceab8..257e47559 100644 --- a/pkg/apis/cluster/v1alpha1/machineset_types.go +++ b/pkg/apis/cluster/v1alpha1/machineset_types.go @@ -209,9 +209,9 @@ func (m *MachineSet) Default() { } if m.Spec.DeletePolicy == "" { - randomPolicy := string(RandomMachineSetDeletePolicy) - log.Printf("Defaulting to %s\n", randomPolicy) - m.Spec.DeletePolicy = randomPolicy + customPolicy := string(CustomMachineSetDeletePolicy) + log.Printf("Defaulting to %s\n", customPolicy) + m.Spec.DeletePolicy = customPolicy } }