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

Can not get PVC automatically deleted on RSC chart uninstall #492

Open
helgard88 opened this issue May 3, 2024 · 2 comments
Open

Can not get PVC automatically deleted on RSC chart uninstall #492

helgard88 opened this issue May 3, 2024 · 2 comments

Comments

@helgard88
Copy link

helgard88 commented May 3, 2024

Currently sharedStorage.annotations default value is {"helm.sh/resource-policy":"keep"}. That means that PVC should not be deleted on helm uninstall.
We use automated pipeline with Terraform Kitchen for our testing environment that requires automated destroy of an infrastructure. But in case PVC still exists, PV can not be deleted, and the pipeline crashes on destroy stage.
I tried to pass both an empty value and {"helm.sh/resource-policy":"delete"} into sharedStorage.annotations but it did not work. The PVC is still there after the RSC chart gets uninstalled. Is it an expected behaviour? Maybe there are some other workarounds to get the PVC automatically deleted?

@tnederlof
Copy link
Contributor

@helgard88 when you set sharedStorage.annotations, did you remove your current deployment and delete the PVC before trying again? Does the annotation show up as expected when you check describe on the new PVC but the behavior is not what you expect or does the annotation not show up as changed at all?

@helgard88
Copy link
Author

@tnederlof thanks for a response. I tried it on a clean setup and entirely new cluster. The annotation shows up as expected in a PVC, but it still does not get deleted after I uninstall the RSC chart.

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

No branches or pull requests

2 participants