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