Skip to content

kapp-controller hangs waiting for StatefulSet PVCs deletion #453

@beltran-rubo

Description

@beltran-rubo

The team is working on creating a Carvel repository that includes most of the Bitnami Helm charts using the App.spec helmTemplate.

Based on carvel-dev/kapp#36, the StatefulSets are the responsible of creating the PVCs, so kapp-controller wont delete them, but only will wait for it to be deleted. That hangs the process to fully remove the packageInstall as there is not any process that would remove them. This is also a known issue in Helm and that project decided not to remove them.

Based on other tickets, it seems the suggested approach is to use the annotation kapp.k14s.io/owned-for-deletion for removing those PVCs, so kapp-controller will not hang and it will remove those volumes.

This solution would work for users who can modify the yaml files and are specific built for Carvel packages. In our case, we are using the Helm charts as the source-of-truth for building the Carvel packages so adding that annotation to the Helm templates would mean to mix Carvel annotations there.

What would be the recommended approach for kapp-controller to avoid hanging the deletion process when there is a PVC created by a StatefulSet?

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-inputdiscussionThis issue is not a bug or feature and a conversation is needed to find an appropriate resolution

    Type

    No type

    Projects

    Status

    Unprioritized

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions