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

Fix strategy type support for Recreate #40

Merged
merged 1 commit into from
Apr 20, 2022
Merged

Conversation

j4m3s-s
Copy link
Contributor

@j4m3s-s j4m3s-s commented Mar 4, 2022

The block rollingUpdate is incompatible with the Recreate strategy type and is not overridable.

Partially fixes #4

@cbuto
Copy link
Collaborator

cbuto commented Mar 4, 2022

@j4m3s-s thanks for the PR!

You should be able to override those values by doing something like --set strategy.type=Recreate --set strategy.rollingUpdate=null.

@j4m3s-s
Copy link
Contributor Author

j4m3s-s commented Mar 4, 2022

Indeed ! I completely forgot I could use null in that case. But I still think it should be a default. WDYT ?

@cbuto
Copy link
Collaborator

cbuto commented Mar 11, 2022

Indeed ! I completely forgot I could use null in that case. But I still think it should be a default. WDYT ?

Gotcha! I’m not sure what benefits come with removing that as the default. Do you have any examples on why we would want to remove it? Thanks!

@j4m3s-s
Copy link
Contributor Author

j4m3s-s commented Mar 20, 2022

With the current number of replicas being 0, the default value for maxUnavailable is also 0. (25% rounded down as described here : https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#rollingupdatedeployment-v1-apps).
So it's not really needed by default, unless it introduces some scaling issue at a high number of replicas ? (I never had the case but this might still be an issue).
And this allows for an easier switch between the two strategies.

What do you think ? Feel free to close it if you think it's not sufficient for a change like this.

@cbuto
Copy link
Collaborator

cbuto commented Apr 6, 2022

@j4m3s-s thanks! I think this would be fine to remove as the default. Since the replica count is 1 by default, maxUnavailable should be 0 anyway.

To move forward with this, can you rebase with main and bump the chart version? (A patch bump should be fine)

@j4m3s-s
Copy link
Contributor Author

j4m3s-s commented Apr 7, 2022

@cbuto Done! Please tell me if there's anything else I should fix. Thanks for your time!

@cbuto
Copy link
Collaborator

cbuto commented Apr 20, 2022

thanks @j4m3s-s, looks good!

@cbuto cbuto merged commit b774a7a into chartmuseum:main Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deployment option to allow strategy Recreate
2 participants