-
Notifications
You must be signed in to change notification settings - Fork 166
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
Set deletion propagation for helm uninstall #698
Conversation
d7c0350
to
af466e5
Compare
3ac9be0
to
4d39735
Compare
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.
Can you please document this new field in docs/spec/v2beta1/helmreleases.md
?
1f66cc2
to
4de98bc
Compare
I did not introduce a new type for the option like was done for CRDsPolicy, as I found other examples where it wasn't done and this string is just passed to helm. Not sure whether there is some guideline though. |
4de98bc
to
b8cf651
Compare
Signed-off-by: Martin Hoffmann <[email protected]> Signed-off-by: Martin Hoffmann <[email protected]>
Signed-off-by: Martin Hoffmann <[email protected]>
b8cf651
to
d656cb3
Compare
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.
lgtm!
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.
Thank you very much! 🥇
Manual backport of the work done in #698, to keep things aligned. Signed-off-by: Hidde Beydals <[email protected]>
Manual backport of the work done in #698, to keep things aligned. Signed-off-by: Hidde Beydals <[email protected]>
Manual backport of the work done in #698, to keep things aligned. Signed-off-by: Hidde Beydals <[email protected]>
Manual backport of the work done in #698, to keep things aligned. Signed-off-by: Hidde Beydals <[email protected]>
In helm 3.12 a feature was added (commit) to support other deletion modes than background during a helm uninstall. This PR attempts to pass the new property DeletionPropagation on the HelmRelease to the runner.
I'm not so sure about the needed default handling for this optional field. To not disturb existing installations, I made sure a value is returned in case there is no default yet persisted on the HelmRelease.