Skip to content

Commit eee70a9

Browse files
committed
ci: update clusterctl to use fork in tests
1 parent eb966eb commit eee70a9

File tree

6 files changed

+18
-4
lines changed

6 files changed

+18
-4
lines changed

clusterctl.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CLUSTERCTL_DISABLE_VERSIONCHECK: "true"
2+
3+
providers:
4+
- name: "aws"
5+
url: "https://github.com/nutanix-cloud-native/cluster-api-provider-aws/releases/v2.10.0-ncn.0/infrastructure-components.yaml"
6+
type: "InfrastructureProvider"

hack/examples/bases/aws/cluster/kustomization.yaml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
55
kind: Kustomization
66

77
resources:
8-
- https://github.com/kubernetes-sigs/cluster-api-provider-aws/releases/download/${CAPA_VERSION}/cluster-template-simple-clusterclass.yaml
8+
- https://github.com/kubernetes-sigs/cluster-api-provider-aws/releases/download/v2.9.1/cluster-template-simple-clusterclass.yaml
99

1010
sortOptions:
1111
order: fifo

hack/examples/bases/aws/clusterclass/kustomization.yaml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
55
kind: Kustomization
66

77
resources:
8-
- https://github.com/kubernetes-sigs/cluster-api-provider-aws/releases/download/${CAPA_VERSION}/cluster-template-simple-clusterclass.yaml
8+
- https://github.com/kubernetes-sigs/cluster-api-provider-aws/releases/download/v2.9.1/cluster-template-simple-clusterclass.yaml
99

1010
configurations:
1111
- kustomizeconfig.yaml

make/clusterctl.mk

Lines changed: 6 additions & 1 deletion
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)
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
@@ -21,9 +22,13 @@ clusterctl.init:
2122
--core cluster-api:$(CAPI_VERSION) \
2223
--bootstrap kubeadm:$(CAPI_VERSION) \
2324
--control-plane kubeadm:$(CAPI_VERSION) \
24-
--infrastructure docker:$(CAPD_VERSION),aws:$(CAPA_VERSION),nutanix:$(CAPX_VERSION) \
25+
--infrastructure docker:$(CAPD_VERSION),aws:$(CAPA_VERSION)-ncn.0,nutanix:$(CAPX_VERSION) \
2526
--addon helm:$(CAAPH_VERSION) \
27+
--config clusterctl.yaml \
2628
--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
2732

2833
.PHONY: clusterctl.delete
2934
clusterctl.delete:

test/e2e/config/caren.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ providers:
5353
type: InfrastructureProvider
5454
versions:
5555
- name: "${CAPA_VERSION}"
56-
value: "https://github.com/kubernetes-sigs/cluster-api-provider-aws/releases/download/${CAPA_VERSION}/infrastructure-components.yaml"
56+
value: "https://github.com/nutanix-cloud-native/cluster-api-provider-aws/releases/download/${CAPA_VERSION}-ncn.0/infrastructure-components.yaml"
5757
type: "url"
5858
contract: v1beta1
5959
files:

test/e2e/data/shared/v1beta1-capa/metadata.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ releaseSeries:
1111
- major: 2
1212
minor: 9
1313
contract: v1beta1
14+
- major: 2
15+
minor: 10
16+
contract: v1beta1

0 commit comments

Comments
 (0)