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

Commit

Permalink
fix: updated patches to use existing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakm-ntnx committed Mar 26, 2024
1 parent 7e2b6e6 commit c1695ce
Showing 1 changed file with 47 additions and 54 deletions.
101 changes: 47 additions & 54 deletions hack/examples/patches/nutanix/initialize-variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,58 +5,51 @@
path: "/spec/topology/class"
value: "nutanix-quick-start"
- op: "add"
path: "/spec/topology/variables"
path: "/spec/topology/variables/0/value/nutanix"
value:
- name: "clusterConfig"
value:
addons:
cni:
clusterAutoscaler:
strategy:
nfd:
strategy:
nutanix:
controlPlaneEndpoint:
host: ${CONTROL_PLANE_ENDPOINT_IP}
port: ${CONTROL_PLANE_ENDPOINT_PORT}
prismCentralEndpoint:
additionalTrustBundle: ${CLUSTER_NAME}-pc-trusted-ca-bundle
host: ${NUTANIX_ENDPOINT}
insecure: ${NUTANIX_INSECURE}
port: 9440
credentialSecret: ${CLUSTER_NAME}-pc-creds
controlPlane:
nutanix:
machineDetails:
bootType: legacy
cluster:
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
type: name
image:
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
type: name
subnet:
- name: ${NUTANIX_SUBNET_NAME}
type: name
memorySize: 4Gi
systemDiskSize: 40Gi
vcpuSockets: 2
vcpusPerSocket: 1
- name: "workerConfig"
value:
nutanix:
machineDetails:
bootType: legacy
cluster:
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
type: name
image:
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
type: name
memorySize: 4Gi
subnet:
- name: ${NUTANIX_SUBNET_NAME}
type: name
systemDiskSize: 40Gi
vcpuSockets: 2
vcpusPerSocket: 1
controlPlaneEndpoint:
host: ${CONTROL_PLANE_ENDPOINT_IP}
port: ${CONTROL_PLANE_ENDPOINT_PORT}
prismCentralEndpoint:
additionalTrustBundle: ${CLUSTER_NAME}-pc-trusted-ca-bundle
host: ${NUTANIX_ENDPOINT}
insecure: ${NUTANIX_INSECURE}
port: 9440
credentialSecret: ${CLUSTER_NAME}-pc-creds
- op: "add"
path: "/spec/topology/variables/0/value/controlPlane"
value:
nutanix:
machineDetails:
bootType: legacy
cluster:
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
type: name
image:
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
type: name
subnet:
- name: ${NUTANIX_SUBNET_NAME}
type: name
memorySize: 4Gi
systemDiskSize: 40Gi
vcpuSockets: 2
vcpusPerSocket: 1
- op: "add"
path: "/spec/topology/variables/1/value/nutanix"
value:
machineDetails:
bootType: legacy
cluster:
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
type: name
image:
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
type: name
memorySize: 4Gi
subnet:
- name: ${NUTANIX_SUBNET_NAME}
type: name
systemDiskSize: 40Gi
vcpuSockets: 2
vcpusPerSocket: 1

0 comments on commit c1695ce

Please sign in to comment.