defaulting for update config
@@ -25,6 +25,7 @@ import (
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/util/validation/field"
+ "k8s.io/utils/pointer"
ctrl "sigs.k8s.io/controller-runtime"
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/webhook"
@@ -235,4 +236,10 @@ func (r *AWSManagedMachinePool) Default() {
mmpLog.Info("Generated EKSNodegroupName", "nodegroup-name", name)
r.Spec.EKSNodegroupName = name
}
+
+ if r.Spec.UpdateConfig == nil {
+ r.Spec.UpdateConfig = &UpdateConfig{
+ MaxUnavailable: pointer.Int(1),
+ }
+ }
}
