Skip to content

Commit

Permalink
Use local clusterctl in make targets
Browse files Browse the repository at this point in the history
  • Loading branch information
dlipovetsky committed Dec 26, 2023
1 parent f1252c7 commit d40cb03
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified

.PHONY: deploy
deploy: manifests kustomize docker-push-kind ## Deploy controller to the K8s cluster specified in ~/.kube/config.
clusterctl delete --infrastructure nutanix:${LOCAL_PROVIDER_VERSION} --include-crd || true
clusterctl init --infrastructure nutanix:${LOCAL_PROVIDER_VERSION} -v 9
$(CLUSTERCTL) delete --infrastructure nutanix:${LOCAL_PROVIDER_VERSION} --include-crd || true
$(CLUSTERCTL) init --infrastructure nutanix:${LOCAL_PROVIDER_VERSION} -v 9
# cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
# $(KUSTOMIZE) build config/default | kubectl apply -f -

Expand Down Expand Up @@ -388,12 +388,11 @@ ifeq ($(EXPORT_RESULT), true)
endif

.PHONY: test-clusterctl-create
test-clusterctl-create: ## Run the tests using clusterctl
which clusterctl
clusterctl version
clusterctl config repositories | grep nutanix
clusterctl generate cluster ${TEST_CLUSTER_NAME} -i nutanix:${LOCAL_PROVIDER_VERSION} --list-variables -v 10
clusterctl generate cluster ${TEST_CLUSTER_NAME} -i nutanix:${LOCAL_PROVIDER_VERSION} --target-namespace ${TEST_NAMESPACE} -v 10 > ./cluster.yaml
test-clusterctl-create: $(CLUSTERCTL) ## Run the tests using clusterctl
$(CLUSTERCTL) version
$(CLUSTERCTL) config repositories | grep nutanix
$(CLUSTERCTL) generate cluster ${TEST_CLUSTER_NAME} -i nutanix:${LOCAL_PROVIDER_VERSION} --list-variables -v 10
$(CLUSTERCTL) generate cluster ${TEST_CLUSTER_NAME} -i nutanix:${LOCAL_PROVIDER_VERSION} --target-namespace ${TEST_NAMESPACE} -v 10 > ./cluster.yaml
kubectl create ns $(TEST_NAMESPACE) || true
kubectl apply -f ./cluster.yaml -n $(TEST_NAMESPACE)

Expand Down

0 comments on commit d40cb03

Please sign in to comment.