Skip to content

Commit

Permalink
Fixes issue with cloud provider kubevirt not updating correctly
Browse files Browse the repository at this point in the history
Signed-off-by: David Vossel <[email protected]>
  • Loading branch information
davidvossel committed May 15, 2024
1 parent 97d244b commit 78ed89e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions support/config/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78ed89e

Please sign in to comment.