-
Notifications
You must be signed in to change notification settings - Fork 488
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
helm: clean up logic for autodelete pvcs #6042
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM. I'm not sure about adding a Kube version setting since other charts don't seem to do the same thing (see comment) and it seems like we could get away with a more lax check with documentation warning users about when it's safe to enable.
# -- The StatefulSetAutoDeletePVC feature gate went into alpha status with k8s 1.27. If you have it enabled on an earlier version, you can lower this value as far as 1.23. | ||
minK8sVersionForAutoDelete: ">= 1.27" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm looking at what other Helm charts do here to remove the need for another option. It looks like the Loki chart only checks for 1.23. I see a similar check in the Consul Helm chert.
Ideally we'd avoid a new config option here, and rely on documentation on enableStatefulSetAutoDeletePVC
, where we mention it's a feature gate from 1.23 to 1.26, and generally available afterwards.
* helm: clean up logic for autodelete pvcs * remove flag * changelog
* helm: clean up logic for autodelete pvcs * remove flag * changelog
PR Description
Which issue(s) this PR fixes
Notes to the Reviewer
PR Checklist