Skip to content

Commit 9fc0bc5

Browse files
committed
[WIP] added nutanix support
1 parent 3eb5d1b commit 9fc0bc5

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Copyright 2023 D2iQ, Inc. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
apiVersion: kustomize.config.k8s.io/v1beta1
5+
kind: Kustomization
6+
7+
resources:
8+
# - ./cilium/crs
9+
# - ./cilium/helm-addon
10+
# - ./calico/crs
11+
# - ./calico/helm-addon
12+
- https://github.com/nutanix-cloud-native/cluster-api-provider-nutanix/releases/download/v1.4.0-alpha.1/cluster-template-clusterclass.yaml
13+
14+
namePrefix:
15+
16+
labels:
17+
- includeSelectors: false
18+
pairs:
19+
cluster.x-k8s.io/provider: infrastructure-nutanix
20+
21+
patches:
22+
- target:
23+
group: cluster.x-k8s.io
24+
kind: Cluster
25+
patch: |-
26+
- op: "remove"
27+
path: "/metadata/namespace"
28+
- op: "add"
29+
path: "/spec/topology/class"
30+
value: "${CLUSTER_CLASS_NAME}"
31+
- target:
32+
group: cluster.x-k8s.io
33+
kind: ClusterClass
34+
patch: |-
35+
- op: "add"
36+
path: "/spec/controlPlane/machineInfrastructure/ref/name"
37+
value: "${CLUSTER_CLASS_NAME}-cp-nmt"
38+
- op: "add"
39+
path: "/spec/controlPlane/ref/name"
40+
value: "${CLUSTER_CLASS_NAME}-kcpt"
41+
- op: "add"
42+
path: "/spec/infrastructure/ref/name"
43+
value: "${CLUSTER_CLASS_NAME}-nct"
44+
- op: "add"
45+
path: "/spec/workers/machineDeployments/0/template/bootstrap/ref/name"
46+
value: "${CLUSTER_CLASS_NAME}-kcfg-0"
47+
- op: "add"
48+
path: "/spec/workers/machineDeployments/0/template/infrastructure/ref/name"
49+
value: "${CLUSTER_CLASS_NAME}-md-nmt"
50+
- op: "remove"
51+
path: "/spec/variables"

hack/examples/kustomization.yaml.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ sortOptions:
1010
resources:
1111
- ./bases/docker
1212
- ./bases/aws
13+
- ./bases/nutanix
1314

1415
patches:
1516
- target:

0 commit comments

Comments
 (0)