Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit a82d455

Browse files
committed
build: add Nutanix infra provider
Also deploy infra provider versions that match the API.
1 parent 554dacd commit a82d455

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright 2023 D2iQ, Inc. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
{{- if and .Values.deployDefaultClusterClasses (.Capabilities.APIVersions.Has "infrastructure.cluster.x-k8s.io/v1beta1/NutanixClusterTemplate") }}
5+
{{ .Files.Get "defaultclusterclasses/nutanix-cluster-class.yaml" }}
6+
{{- end}}

make/clusterctl.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Copyright 2023 D2iQ, Inc. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4+
export CAPA_VERSION := $(shell cd hack/third-party/capa && go list -m -f '{{ .Version }}' sigs.k8s.io/cluster-api-provider-aws/v2)
5+
export CAPX_VERSION := $(shell cd hack/third-party/capx && go list -m -f '{{ .Version }}' github.com/nutanix-cloud-native/cluster-api-provider-nutanix)
6+
47
.PHONY: clusterctl.init
58
clusterctl.init:
69
env CLUSTER_TOPOLOGY=true \
@@ -10,7 +13,7 @@ clusterctl.init:
1013
AWS_B64ENCODED_CREDENTIALS=$$(clusterawsadm bootstrap credentials encode-as-profile) \
1114
clusterctl init \
1215
--kubeconfig=$(KIND_KUBECONFIG) \
13-
--infrastructure docker,aws \
16+
--infrastructure docker,aws:${CAPA_VERSION},nutanix:${CAPX_VERSION} \
1417
--addon helm \
1518
--wait-providers
1619

0 commit comments

Comments
 (0)