Skip to content

Commit

Permalink
fix(uninstall):remove kubearmor annotations from kubernetes resources (
Browse files Browse the repository at this point in the history
…#440)

* removes kubearmor annotations from kubernetes resources when --force flag is triggered
* remove role-bindings and clusterroles for helm based uninstallation

Signed-off-by: Prateek <[email protected]>
Co-authored-by: Aryan-sharma11 <[email protected]>
  • Loading branch information
Prateeknandle and Aryan-sharma11 authored Dec 13, 2024
1 parent a9b0c24 commit 8843f36
Show file tree
Hide file tree
Showing 2 changed files with 450 additions and 185 deletions.
2 changes: 2 additions & 0 deletions install/customResource.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (

var kspName = "kubearmorpolicies.security.kubearmor.com"
var hspName = "kubearmorhostpolicies.security.kubearmor.com"
var cspName = "kubearmorclusterpolicies.security.kubearmor.com"
var kocName = "kubearmorconfigs.operator.kubearmor.com"

// CreateCustomResourceDefinition creates the CRD and add it into Kubernetes.
func CreateCustomResourceDefinition(crdName string) apiextensions.CustomResourceDefinition {
Expand Down
Loading

0 comments on commit 8843f36

Please sign in to comment.