Skip to content

Commit 39225d3

Browse files
sutaakaropenshift-merge-robot
authored andcommitted
Apply MCAD CRD version replace for operator uninstall and undeploy
1 parent 66da5ab commit 39225d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~
255255

256256
.PHONY: uninstall
257257
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
258+
$(KUSTOMIZE) fn run config/crd/mcad --image gcr.io/kpt-fn/apply-setters:v0.2.0 -- MCAD_CRD=$(MCAD_CRD)
258259
$(KUSTOMIZE) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found) -f -
260+
git restore config/*
259261

260262
.PHONY: deploy
261263
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
@@ -266,7 +268,9 @@ deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in
266268

267269
.PHONY: undeploy
268270
undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
271+
$(KUSTOMIZE) fn run config/crd/mcad --image gcr.io/kpt-fn/apply-setters:v0.2.0 -- MCAD_CRD=$(MCAD_CRD)
269272
$(KUSTOMIZE) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found) -f -
273+
git restore config/*
270274

271275
##@ Build Dependencies
272276

0 commit comments

Comments
 (0)