Skip to content

Commit a7b9f48

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

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
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/${CAPA_VERSION}/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/nutanix-cloud-native/cluster-api-provider-aws/releases/download/${CAPA_VERSION}-ncn.0/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/nutanix-cloud-native/cluster-api-provider-aws/releases/download/${CAPA_VERSION}-ncn.0/cluster-template-simple-clusterclass.yaml
99

1010
configurations:
1111
- kustomizeconfig.yaml

make/clusterctl.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
export CAPI_VERSION := $(shell GOWORK=off go list -m -f '{{ .Version }}' sigs.k8s.io/cluster-api)
55
export CAPD_VERSION := $(shell GOWORK=off go list -m -f '{{ .Version }}' sigs.k8s.io/cluster-api/test)
6-
export CAPA_VERSION := $(shell cd hack/third-party/capa && GOWORK=off go list -m -f '{{ .Version }}' sigs.k8s.io/cluster-api-provider-aws/v2)
6+
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)
99

@@ -21,8 +21,9 @@ clusterctl.init:
2121
--core cluster-api:$(CAPI_VERSION) \
2222
--bootstrap kubeadm:$(CAPI_VERSION) \
2323
--control-plane kubeadm:$(CAPI_VERSION) \
24-
--infrastructure docker:$(CAPD_VERSION),aws:$(CAPA_VERSION),nutanix:$(CAPX_VERSION) \
24+
--infrastructure docker:$(CAPD_VERSION),aws:$(CAPA_VERSION)-ncn.0,nutanix:$(CAPX_VERSION) \
2525
--addon helm:$(CAAPH_VERSION) \
26+
--config clusterctl.yaml \
2627
--wait-providers
2728

2829
.PHONY: 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}/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)