SAP-archive / karydia

Kubernetes Security Walnut
Other
77 stars 10 forks source link

Remove CRDs and webhooks on delete #199

Closed Neumann-Nils closed 5 years ago

Neumann-Nils commented 5 years ago

Description

When karydia is deleted via helm delete --purge karydia the created CRDs and webhooks should be deleted. This is realized using a pre-deletehook.

[Resolves #184]

Neumann-Nils commented 5 years ago

CRDs and webhooks still exist after helm delete karydia --purge

Cannot consistently reproduce this behavior. But the problem seems to be that the post-install hook sometimes is not triggered (the triggering condition is somehow connected with the state of the other resources to delete).

To make the deletion process more consistent and reliable, I switched back to a pre-delete hook. This approach works just fine for me.