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

Commit 1b7ea37

Browse files
committed
updated patches to use existing variable
1 parent 7e2b6e6 commit 1b7ea37

File tree

1 file changed

+47
-54
lines changed

1 file changed

+47
-54
lines changed

hack/examples/patches/nutanix/initialize-variables.yaml

Lines changed: 47 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -5,58 +5,51 @@
55
path: "/spec/topology/class"
66
value: "nutanix-quick-start"
77
- op: "add"
8-
path: "/spec/topology/variables"
8+
path: "/spec/topology/variables/0/value/nutanix"
99
value:
10-
- name: "clusterConfig"
11-
value:
12-
addons:
13-
cni:
14-
clusterAutoscaler:
15-
strategy:
16-
nfd:
17-
strategy:
18-
nutanix:
19-
controlPlaneEndpoint:
20-
host: ${CONTROL_PLANE_ENDPOINT_IP}
21-
port: ${CONTROL_PLANE_ENDPOINT_PORT}
22-
prismCentralEndpoint:
23-
additionalTrustBundle: ${CLUSTER_NAME}-pc-trusted-ca-bundle
24-
host: ${NUTANIX_ENDPOINT}
25-
insecure: ${NUTANIX_INSECURE}
26-
port: 9440
27-
credentialSecret: ${CLUSTER_NAME}-pc-creds
28-
controlPlane:
29-
nutanix:
30-
machineDetails:
31-
bootType: legacy
32-
cluster:
33-
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
34-
type: name
35-
image:
36-
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
37-
type: name
38-
subnet:
39-
- name: ${NUTANIX_SUBNET_NAME}
40-
type: name
41-
memorySize: 4Gi
42-
systemDiskSize: 40Gi
43-
vcpuSockets: 2
44-
vcpusPerSocket: 1
45-
- name: "workerConfig"
46-
value:
47-
nutanix:
48-
machineDetails:
49-
bootType: legacy
50-
cluster:
51-
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
52-
type: name
53-
image:
54-
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
55-
type: name
56-
memorySize: 4Gi
57-
subnet:
58-
- name: ${NUTANIX_SUBNET_NAME}
59-
type: name
60-
systemDiskSize: 40Gi
61-
vcpuSockets: 2
62-
vcpusPerSocket: 1
10+
controlPlaneEndpoint:
11+
host: ${CONTROL_PLANE_ENDPOINT_IP}
12+
port: ${CONTROL_PLANE_ENDPOINT_PORT}
13+
prismCentralEndpoint:
14+
additionalTrustBundle: ${CLUSTER_NAME}-pc-trusted-ca-bundle
15+
host: ${NUTANIX_ENDPOINT}
16+
insecure: ${NUTANIX_INSECURE}
17+
port: 9440
18+
credentialSecret: ${CLUSTER_NAME}-pc-creds
19+
- op: "add"
20+
path: "/spec/topology/variables/0/value/controlPlane"
21+
value:
22+
nutanix:
23+
machineDetails:
24+
bootType: legacy
25+
cluster:
26+
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
27+
type: name
28+
image:
29+
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
30+
type: name
31+
subnet:
32+
- name: ${NUTANIX_SUBNET_NAME}
33+
type: name
34+
memorySize: 4Gi
35+
systemDiskSize: 40Gi
36+
vcpuSockets: 2
37+
vcpusPerSocket: 1
38+
- op: "add"
39+
path: "/spec/topology/variables/1/value/nutanix"
40+
value:
41+
machineDetails:
42+
bootType: legacy
43+
cluster:
44+
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
45+
type: name
46+
image:
47+
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
48+
type: name
49+
memorySize: 4Gi
50+
subnet:
51+
- name: ${NUTANIX_SUBNET_NAME}
52+
type: name
53+
systemDiskSize: 40Gi
54+
vcpuSockets: 2
55+
vcpusPerSocket: 1

0 commit comments

Comments
 (0)