kubearmor / kubearmor-client

KubeArmor cli tool aka kArmor :robot:
Apache License 2.0
34 stars 81 forks source link

`karmor uninstall` should remove annotations/policies by default #434

Open DelusionalOptimist opened 2 months ago

DelusionalOptimist commented 2 months ago

Description

Currently when users remove KubeArmor with karmor uninstall, by default there pods are left with AppArmor annotations. This is not desired as it may cause issues in certain cases like:

They have to use --force flag for the same which is also not documented anywhere.

Improvement

Remove annotations and policies/CR(D)s by default. If user wants to keep it, they use the --keep-policies flag. (Could use suggestions on the flag name)

rootxrishabh commented 1 month ago

Related - #1589