Skip to content

Commit

Permalink
change maxUnavailable and MaxSurge to use percentages as opposed to int
Browse files Browse the repository at this point in the history
  • Loading branch information
HVBE authored and pb82 committed Nov 29, 2022
1 parent 4e92d62 commit 5add9c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/model/grafanaDeployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ func getDeploymentAnnotations(cr *v1alpha1.Grafana, existing map[string]string)
}

func getRollingUpdateStrategy() *v1.RollingUpdateDeployment {
var maxUnaval intstr.IntOrString = intstr.FromInt(25)
var maxSurge intstr.IntOrString = intstr.FromInt(25)
var maxUnaval intstr.IntOrString = intstr.FromString("25%")
var maxSurge intstr.IntOrString = intstr.FromString("25%")
return &v1.RollingUpdateDeployment{
MaxUnavailable: &maxUnaval,
MaxSurge: &maxSurge,
Expand Down

0 comments on commit 5add9c2

Please sign in to comment.