From 089913ba0998a21c6b30d81dd1c7f26061f5a4e3 Mon Sep 17 00:00:00 2001 From: 70data <70data@gmail.com> Date: Sun, 25 Apr 2021 13:34:01 +0800 Subject: [PATCH] update --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 2ddaefa..971bb4b 100644 --- a/Makefile +++ b/Makefile @@ -57,6 +57,10 @@ deploy: manifests kustomize cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG} $(KUSTOMIZE) build config/default | kubectl apply -f - +# clean up crd & controller in the configured Kubernetes cluster in ~/.kube/config +delete: manifests kustomize + $(KUSTOMIZE) build config/default | kubectl delete -f - + # Generate manifests e.g. CRD, RBAC etc. manifests: controller-gen $(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases