Skip to content

Commit 260d2b2

Browse files
committed
Update Makefile targets with cmctl dependency
Follow up to #395 PR. Make targets that use cmctl CLI should `make` it as a dependency. Signed-off-by: Aitor Perez Cedres <[email protected]>
1 parent 3858fac commit 260d2b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ install: manifests
8888
uninstall: manifests
8989
kustomize build config/crd | kubectl delete -f -
9090

91-
deploy-manager:
91+
deploy-manager: cmctl
9292
$(CMCTL) check api --wait=2m
9393
kustomize build config/default/overlays/cert-manager/ | kubectl apply -f -
9494

@@ -99,12 +99,12 @@ destroy:
9999
kustomize build config/default/base | kubectl delete --ignore-not-found=true -f -
100100

101101
# Deploy operator with local changes
102-
deploy-dev: check-env-docker-credentials docker-build-dev manifests deploy-rbac docker-registry-secret set-operator-image-repo
102+
deploy-dev: check-env-docker-credentials cmctl docker-build-dev manifests deploy-rbac docker-registry-secret set-operator-image-repo
103103
$(CMCTL) check api --wait=2m
104104
kustomize build config/default/overlays/dev | sed 's@((operator_docker_image))@"$(DOCKER_REGISTRY_SERVER)/$(OPERATOR_IMAGE):$(GIT_COMMIT)"@' | kubectl apply -f -
105105

106106
# Load operator image and deploy operator into current KinD cluster
107-
deploy-kind: manifests deploy-rbac
107+
deploy-kind: manifests cmctl deploy-rbac
108108
$(BUILD_KIT) build --build-arg=GIT_COMMIT=$(GIT_COMMIT) -t $(DOCKER_REGISTRY_SERVER)/$(OPERATOR_IMAGE):$(GIT_COMMIT) .
109109
kind load docker-image $(DOCKER_REGISTRY_SERVER)/$(OPERATOR_IMAGE):$(GIT_COMMIT)
110110
$(CMCTL) check api --wait=2m

0 commit comments

Comments
 (0)