Skip to content

Commit c1a9a29

Browse files
committed
ci: update clusterctl to use fork
1 parent eb966eb commit c1a9a29

File tree

8 files changed

+21
-7
lines changed

8 files changed

+21
-7
lines changed

charts/cluster-api-runtime-extensions-nutanix/defaultclusterclasses/eks-cluster-class.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ spec:
3232
ref:
3333
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
3434
kind: EKSConfigTemplate
35-
name: eks-quick-start-worker-configtemplate
35+
name: quick-start-worker-configtemplate
3636
infrastructure:
3737
ref:
3838
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
@@ -77,7 +77,7 @@ spec:
7777
sshKeyName: ""
7878
---
7979
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
80-
kind: EKSConfigTemplate
80+
kind: NodeadmConfigTemplate
8181
metadata:
8282
labels:
8383
cluster.x-k8s.io/provider: eks

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

hack/examples/bases/eks/clusterclass/clusterclass.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ spec:
6161
spec: {}
6262
---
6363
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
64-
kind: EKSConfigTemplate
64+
kind: NodeadmConfigTemplate
6565
metadata:
6666
name: "quick-start-worker-configtemplate"
6767
spec:

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}/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)