diff --git a/Makefile b/Makefile index 6e8001fce67..8d13b3602c7 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ IMAGE_TAG_BASE ?= quay.io/opendatahub/opendatahub-operator # keep the name based on IMG which already used from command line IMG_TAG ?= latest # Update IMG to a variable, to keep it consistent across versions for OpenShift CI -IMG = $(IMAGE_TAG_BASE):$(IMG_TAG) +IMG ?= $(IMAGE_TAG_BASE):$(IMG_TAG) # BUNDLE_IMG defines the image:tag used for the bundle. # You can use it as an arg. (E.g make bundle-build BUNDLE_IMG=/:) BUNDLE_IMG ?= $(IMAGE_TAG_BASE)-bundle:v$(VERSION) @@ -221,7 +221,7 @@ deploy: prepare ## Deploy controller to the K8s cluster specified in ~/.kube/con $(KUSTOMIZE) build config/default | kubectl apply --namespace $(OPERATOR_NAMESPACE) -f - .PHONY: undeploy -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. +undeploy: prepare ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion. $(KUSTOMIZE) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found) -f - ## Location to install dependencies to