Skip to content

Commit

Permalink
Merge pull request #4039 from davidvossel/update-issue
Browse files Browse the repository at this point in the history
OCPBUGS-33724: Fixes update issue with KubeVirt platform
  • Loading branch information
openshift-merge-bot[bot] authored Jun 4, 2024
2 parents 1c48678 + 78ed89e commit cd2d529
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 cd2d529

Please sign in to comment.