Skip to content

Commit

Permalink
fix annotation controller delete bug
Browse files Browse the repository at this point in the history
Signed-off-by: Achref ben saad <[email protected]>
  • Loading branch information
achrefbensaad committed Jul 4, 2022
1 parent a153be5 commit f14e1f7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/KubeArmorAnnotation/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,14 @@ deploy: manifests kustomize deploy-cert-manager ## Deploy controller to the K8s
sed 's/kubearmor-annotation-controller-manager/kubearmor-annotation-manager/g' | \
sed -e "1,7d" | kubectl apply -f -

delete: delete-cert-manager ## Delete controller from the K8s cluster specified in ~/.kube/config.
$(KUSTOMIZE) build config/default | kubectl delete -f -
delete-annotation-controller: ## Delete controller from the K8s cluster specified in ~/.kube/config.
cd $(CURDIR); $(KUSTOMIZE) build config/default | \
sed 's/control-plane: controller-manager/kubearmor-app: kubearmor-annotation-manager/g' | \
sed 's/kubearmor-annotation-controller-manager/kubearmor-annotation-manager/g' | \
sed -e "1,7d" | kubectl delete -f -

delete: delete-annotation-controller delete-cert-manager ## Delete annotation controller and cert manager from the K8s cluster specified in ~/.kube/config.


deployment: manifests kustomize
cd config/manager; $(KUSTOMIZE) edit set image controller=${IMG}:latest
Expand Down

0 comments on commit f14e1f7

Please sign in to comment.