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
hubeadmin committed Mar 31, 2021
1 parent fa44ff3 commit 40adcb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/model/grafanaDeployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ func getReplicas(cr *v1alpha1.Grafana) *int32 {
}

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 40adcb2

Please sign in to comment.