From 78ed89ed4d9ef9d0188b3c4f63dab9c5b64e5c36 Mon Sep 17 00:00:00 2001 From: David Vossel Date: Wed, 15 May 2024 16:25:04 -0400 Subject: [PATCH] Fixes issue with cloud provider kubevirt not updating correctly Signed-off-by: David Vossel --- support/config/deployment.go | 1 + 1 file changed, 1 insertion(+) diff --git a/support/config/deployment.go b/support/config/deployment.go index 3315175472..26f120869a 100644 --- a/support/config/deployment.go +++ b/support/config/deployment.go @@ -90,6 +90,7 @@ func (c *DeploymentConfig) ApplyTo(deployment *appsv1.Deployment) { maxUnavailable := intstr.FromInt(1) if deployment.Spec.Strategy.RollingUpdate == nil { deployment.Spec.Strategy.RollingUpdate = &appsv1.RollingUpdateDeployment{} + deployment.Spec.Strategy.Type = appsv1.RollingUpdateDeploymentStrategyType } deployment.Spec.Strategy.RollingUpdate.MaxSurge = &maxSurge deployment.Spec.Strategy.RollingUpdate.MaxUnavailable = &maxUnavailable