SAP-archive / karydia

Kubernetes Security Walnut
Other
76 stars 10 forks source link

Remove all artifacts on delete #184

Closed CodeClinch closed 5 years ago

CodeClinch commented 5 years ago

Description

When Karydia is deleted some artifacts are still in the system

Steps to reproduce

  1. Delete Karydia
  2. Check for artifacts

Expected behavior

Al artifacts should be deleted

Logs / console output / screenshots / affected lines of code

Environment

ionysos commented 5 years ago

Currently, the following (manual) commands should do the trick:

helm delete karydia --purge &&
kubectl delete mutatingwebhookconfigurations karydia-webhook &&
kubectl delete validatingwebhookconfigurations karydia-webhook &&
kubectl delete customresourcedefinitions karydianetworkpolicies.karydia.gardener.cloud &&
kubectl delete customresourcedefinitions karydiaconfigs.karydia.gardener.cloud