Skip to content

Commit 3d4f108

Browse files
committed
added nutanix into charts to install clusterclass
1 parent b59fa70 commit 3d4f108

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
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}}

hack/examples/sync.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ kustomize build ./hack/examples |
100100
and .kind == "AWSClusterStaticIdentity"
101101
)' >"${EXAMPLE_CLUSTERS_DIR}/aws-cluster-identity.yaml"
102102
) \
103+
>(
104+
gojq --yaml-input --yaml-output 'select(.metadata.labels["cluster.x-k8s.io/provider"] == "infrastructure-nutanix"
105+
and .kind != "Cluster"
106+
)' >"${EXAMPLE_CLUSTERCLASSES_DIR}/nutanix-cluster-class.yaml"
107+
) \
103108
>(
104109
gojq --yaml-input --yaml-output 'select(
105110
.metadata.labels["cluster.x-k8s.io/provider"] == "infrastructure-nutanix"

0 commit comments

Comments
 (0)