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: don't set spec.updateStrategy.maxSurge of DaemonSet by default #167

Merged

Conversation

justin0u0
Copy link
Contributor

Hi 👋,

This PR fixes the Helm chart so that spec.updateStrategy.maxSurge is not set by default.

The reason for this change is that in Kubernetes clusters older than version 1.25, the maxSurge field is unavailable unless the feature gate is enabled1.

On the other hand, Kubernetes' default behavior is to set maxSurge to 0 if the field is omitted2. Therefore, omitting this field should maintain the current behavior without causing any breaking changes.

Footnotes

  1. https://github.com/kubernetes/enhancements/issues/1591

  2. https://github.com/kubernetes/enhancements/tree/master/keps/sig-apps/1591-daemonset-surge#implementation-detailsnotesconstraints

@justin0u0 justin0u0 force-pushed the dont-set-daemonset-maxsurge-by-default branch from d9822a8 to 2215b27 Compare October 1, 2024 05:44
@coveralls
Copy link

coveralls commented Oct 1, 2024

Pull Request Test Coverage Report for Build 11138571088

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 62.259%

Totals Coverage Status
Change from base Build 11132099321: 0.0%
Covered Lines: 452
Relevant Lines: 726

💛 - Coveralls

@justin0u0 justin0u0 force-pushed the dont-set-daemonset-maxsurge-by-default branch from 2215b27 to 143a0e1 Compare October 2, 2024 05:53
@zbindenren
Copy link
Member

Thx for your contribution

@zbindenren zbindenren merged commit 6528a22 into postfinance:main Oct 2, 2024
5 checks passed
@justin0u0 justin0u0 deleted the dont-set-daemonset-maxsurge-by-default branch October 3, 2024 13:20
@justin0u0
Copy link
Contributor Author

Hi @zbindenren, could you tag the latest commit for a new release? Thanks!

@clementnuss
Copy link
Contributor

here you go: https://github.com/postfinance/kubenurse/releases/tag/v1.14.2

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.

4 participants