Removing CR/B upon Capsule removal (#102)

This commit is contained in:
Dario Tranchitella
2020-09-23 10:40:08 +02:00
committed by GitHub
parent feec653db4
commit 8f3fd8dfee
+2
View File
@@ -54,6 +54,8 @@ deploy: manifests kustomize
# Remove controller in the configured Kubernetes cluster in ~/.kube/config
remove: manifests kustomize
$(KUSTOMIZE) build config/default | kubectl delete -f -
kubectl delete clusterroles.rbac.authorization.k8s.io capsule-namespace-deleter capsule-namespace-provisioner --ignore-not-found
kubectl delete clusterrolebindings.rbac.authorization.k8s.io capsule-namespace-provisioner --ignore-not-found
# Generate manifests e.g. CRD, RBAC etc.
manifests: controller-gen