Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change maxUnavailable and MaxSurge to use percentages as opposed to int #852

Merged
merged 1 commit into from Nov 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions controllers/model/grafanaDeployment.go
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