Skip to content

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

@helgard88

Description

@helgard88

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    team: connectPosit Connect related issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions