-
Notifications
You must be signed in to change notification settings - Fork 284
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
diff does not honour "helm.sh/resource-policy: keep" #246
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I have the same problem. |
I also just ran into this. I know it may be kind of an edge case, but it might be worth re-opening; even if just for visibility. |
I have the same issue, in our case with secrets which are generated only if they do not already exist (check via lookup if one exists, if so use that, else generate a new one). |
The annotation `helm.sh/resource-policy: keep` instructs Helm to skip deleting this resource when a Helm operation would result in its deletion. As the resource is not actually deleted, exclude it from the generated diff.
The annotation `helm.sh/resource-policy: keep` instructs Helm to skip deleting this resource when a Helm operation would result in its deletion. As the resource is not actually deleted, exclude it from the generated diff.
We have a deployment which used an older version of helm, which defines the namespace as a YAML object in the helm chart. We want to upgrade to removing this as is the defined method in helm 3, so have added
helm.sh/resource-policy: keep
as an annotation, however when I runhelm diff
on the chart, it shows it will be removed. This is intended functionality as the YAML no longer exists, but could a note be added to the output of the diff noting to the user that this is annotated so it will not be deleted?The text was updated successfully, but these errors were encountered: