File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
pkg/plugins/ansible/v1/scaffolds/internal/templates
testdata/memcached-molecule-operator Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -119,13 +119,17 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
119119
120120##@ Deployment
121121
122+ ifndef ignore-not-found
123+ ignore-not-found = false
124+ endif
125+
122126.PHONY: install
123127install: kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
124128 $(KUSTOMIZE) build config/crd | kubectl apply -f -
125129
126130.PHONY: uninstall
127131uninstall: kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config.
128- $(KUSTOMIZE) build config/crd | kubectl delete -f -
132+ $(KUSTOMIZE) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found) - f -
129133
130134.PHONY: deploy
131135deploy: kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
@@ -134,7 +138,7 @@ deploy: kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/c
134138
135139.PHONY: undeploy
136140undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config.
137- $(KUSTOMIZE) build config/default | kubectl delete -f -
141+ $(KUSTOMIZE) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found) - f -
138142
139143OS := $(shell uname -s | tr '[:upper:]' '[:lower:]')
140144ARCH := $(shell uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
Original file line number Diff line number Diff line change @@ -53,13 +53,17 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
5353
5454# #@ Deployment
5555
56+ ifndef ignore-not-found
57+ ignore-not-found = false
58+ endif
59+
5660.PHONY : install
5761install : kustomize # # Install CRDs into the K8s cluster specified in ~/.kube/config.
5862 $(KUSTOMIZE ) build config/crd | kubectl apply -f -
5963
6064.PHONY : uninstall
6165uninstall : kustomize # # Uninstall CRDs from the K8s cluster specified in ~/.kube/config.
62- $(KUSTOMIZE ) build config/crd | kubectl delete -f -
66+ $(KUSTOMIZE ) build config/crd | kubectl delete --ignore-not-found= $( ignore-not-found ) - f -
6367
6468.PHONY : deploy
6569deploy : kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
@@ -68,7 +72,7 @@ deploy: kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/c
6872
6973.PHONY : undeploy
7074undeploy : # # Undeploy controller from the K8s cluster specified in ~/.kube/config.
71- $(KUSTOMIZE ) build config/default | kubectl delete -f -
75+ $(KUSTOMIZE ) build config/default | kubectl delete --ignore-not-found= $( ignore-not-found ) - f -
7276
7377OS := $(shell uname -s | tr '[:upper:]' '[:lower:]')
7478ARCH := $(shell uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
You can’t perform that action at this time.
0 commit comments