Skip to content

Commit 524b84d

Browse files
committed
ci: update clusterctl to use fork in tests
1 parent 5b3f0c6 commit 524b84d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

make/clusterctl.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export CAPD_VERSION := $(shell GOWORK=off go list -m -f '{{ .Version }}' sigs.k8
66
export CAPA_VERSION := $(shell cd hack/third-party/capa && GOWORK=off go list -m -f '{{ .Version }}' sigs.k8s.io/cluster-api-provider-aws/v2)-ncn.0
77
export CAPX_VERSION := $(shell cd hack/third-party/capx && GOWORK=off go list -m -f '{{ .Version }}' github.com/nutanix-cloud-native/cluster-api-provider-nutanix)
88
export CAAPH_VERSION := $(shell cd hack/third-party/caaph && GOWORK=off go list -m -f '{{ .Version }}' sigs.k8s.io/cluster-api-addon-provider-helm)
9+
CAPA_PATCHED_IMAGE := ghcr.io/nutanix-cloud-native/cluster-api-aws-controller:$(CAPA_VERSION)-ncn.0
910

1011
# Leave Nutanix credentials empty here and set it when creating the clusters
1112
.PHONY: clusterctl.init
@@ -25,6 +26,9 @@ clusterctl.init:
2526
--addon helm:$(CAAPH_VERSION) \
2627
--config clusterctl.yaml \
2728
--wait-providers
29+
kubectl --kubeconfig=$(KIND_KUBECONFIG) set image -n capa-system deployment/capa-controller-manager \
30+
manager=$(CAPA_PATCHED_IMAGE)@$(shell crane digest $(CAPA_PATCHED_IMAGE))
31+
kubectl --kubeconfig=$(KIND_KUBECONFIG) rollout status -n capa-system deployment/capa-controller-manager
2832

2933
.PHONY: clusterctl.delete
3034
clusterctl.delete:

0 commit comments

Comments
 (0)