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
119
119
120
120
##@ Deployment
121
121
122
+ ifndef ignore-not-found
123
+ ignore-not-found = false
124
+ endif
125
+
122
126
.PHONY: install
123
127
install: kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
124
128
$(KUSTOMIZE) build config/crd | kubectl apply -f -
125
129
126
130
.PHONY: uninstall
127
131
uninstall: 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 -
129
133
130
134
.PHONY: deploy
131
135
deploy: 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
134
138
135
139
.PHONY: undeploy
136
140
undeploy: ## 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 -
138
142
139
143
OS := $(shell uname -s | tr '[:upper:]' '[:lower:]')
140
144
ARCH := $(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
53
53
54
54
# #@ Deployment
55
55
56
+ ifndef ignore-not-found
57
+ ignore-not-found = false
58
+ endif
59
+
56
60
.PHONY : install
57
61
install : kustomize # # Install CRDs into the K8s cluster specified in ~/.kube/config.
58
62
$(KUSTOMIZE ) build config/crd | kubectl apply -f -
59
63
60
64
.PHONY : uninstall
61
65
uninstall : 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 -
63
67
64
68
.PHONY : deploy
65
69
deploy : 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
68
72
69
73
.PHONY : undeploy
70
74
undeploy : # # 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 -
72
76
73
77
OS := $(shell uname -s | tr '[:upper:]' '[:lower:]')
74
78
ARCH := $(shell uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
You can’t perform that action at this time.
0 commit comments