We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab6342e + 81bc3d3 commit d2c2ddbCopy full SHA for d2c2ddb
controlplane/kubeadm/controllers/upgrade.go
@@ -38,7 +38,7 @@ func (r *KubeadmControlPlaneReconciler) upgradeControlPlane(
38
) (ctrl.Result, error) {
39
logger := controlPlane.Logger()
40
41
- if kcp.Spec.RolloutStrategy == nil && kcp.Spec.RolloutStrategy.RollingUpdate == nil {
+ if kcp.Spec.RolloutStrategy == nil || kcp.Spec.RolloutStrategy.RollingUpdate == nil {
42
return ctrl.Result{}, errors.New("rolloutStrategy is not set")
43
}
44
0 commit comments