File tree 6 files changed +28
-21
lines changed
examples/capi-quick-start
base/nutanix/cluster-topology
6 files changed +28
-21
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ binaryData:
3
3
ca.crt : ${NUTANIX_ADDITIONAL_TRUST_BUNDLE=""}
4
4
kind : ConfigMap
5
5
metadata :
6
- name : ${CLUSTER_NAME}
6
+ name : ${CLUSTER_NAME}-pc-trusted-ca-bundle
7
7
---
8
8
apiVersion : v1
9
9
data :
@@ -221,12 +221,12 @@ data:
221
221
name: nutanix-config
222
222
kind : ConfigMap
223
223
metadata :
224
- name : ${CLUSTER_NAME}
224
+ name : nutanix-ccm
225
225
---
226
226
apiVersion : v1
227
227
kind : Secret
228
228
metadata :
229
- name : ${CLUSTER_NAME}
229
+ name : ${CLUSTER_NAME}-pc-creds
230
230
stringData :
231
231
credentials : |
232
232
[
@@ -244,7 +244,7 @@ stringData:
244
244
apiVersion : v1
245
245
kind : Secret
246
246
metadata :
247
- name : ${CLUSTER_NAME}
247
+ name : nutanix-ccm-secret
248
248
stringData :
249
249
nutanix-ccm-secret.yaml : |
250
250
apiVersion: v1
@@ -271,7 +271,7 @@ type: addons.cluster.x-k8s.io/resource-set
271
271
apiVersion : addons.cluster.x-k8s.io/v1beta1
272
272
kind : ClusterResourceSet
273
273
metadata :
274
- name : ${CLUSTER_NAME}
274
+ name : nutanix-ccm-crs
275
275
spec :
276
276
clusterSelector :
277
277
matchLabels :
@@ -336,6 +336,7 @@ spec:
336
336
port : ${CONTROL_PLANE_ENDPOINT_PORT}
337
337
prismCentralEndpoint :
338
338
additionalTrustBundle : trust-bundle-root-ca
339
+ credentialSecret : ${CLUSTER_NAME}-pc-creds
339
340
host : ${NUTANIX_ENDPOINT}
340
341
insecure : ${NUTANIX_INSECURE}
341
342
port : 9440
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ binaryData:
3
3
ca.crt : ${NUTANIX_ADDITIONAL_TRUST_BUNDLE=""}
4
4
kind : ConfigMap
5
5
metadata :
6
- name : ${CLUSTER_NAME}
6
+ name : ${CLUSTER_NAME}-pc-trusted-ca-bundle
7
7
---
8
8
apiVersion : v1
9
9
data :
@@ -221,12 +221,12 @@ data:
221
221
name: nutanix-config
222
222
kind : ConfigMap
223
223
metadata :
224
- name : ${CLUSTER_NAME}
224
+ name : nutanix-ccm
225
225
---
226
226
apiVersion : v1
227
227
kind : Secret
228
228
metadata :
229
- name : ${CLUSTER_NAME}
229
+ name : ${CLUSTER_NAME}-pc-creds
230
230
stringData :
231
231
credentials : |
232
232
[
@@ -244,7 +244,7 @@ stringData:
244
244
apiVersion : v1
245
245
kind : Secret
246
246
metadata :
247
- name : ${CLUSTER_NAME}
247
+ name : nutanix-ccm-secret
248
248
stringData :
249
249
nutanix-ccm-secret.yaml : |
250
250
apiVersion: v1
@@ -271,7 +271,7 @@ type: addons.cluster.x-k8s.io/resource-set
271
271
apiVersion : addons.cluster.x-k8s.io/v1beta1
272
272
kind : ClusterResourceSet
273
273
metadata :
274
- name : ${CLUSTER_NAME}
274
+ name : nutanix-ccm-crs
275
275
spec :
276
276
clusterSelector :
277
277
matchLabels :
@@ -336,6 +336,7 @@ spec:
336
336
port : ${CONTROL_PLANE_ENDPOINT_PORT}
337
337
prismCentralEndpoint :
338
338
additionalTrustBundle : trust-bundle-root-ca
339
+ credentialSecret : ${CLUSTER_NAME}-pc-creds
339
340
host : ${NUTANIX_ENDPOINT}
340
341
insecure : ${NUTANIX_INSECURE}
341
342
port : 9440
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ binaryData:
3
3
ca.crt : ${NUTANIX_ADDITIONAL_TRUST_BUNDLE=""}
4
4
kind : ConfigMap
5
5
metadata :
6
- name : ${CLUSTER_NAME}
6
+ name : ${CLUSTER_NAME}-pc-trusted-ca-bundle
7
7
---
8
8
apiVersion : v1
9
9
data :
@@ -221,12 +221,12 @@ data:
221
221
name: nutanix-config
222
222
kind : ConfigMap
223
223
metadata :
224
- name : ${CLUSTER_NAME}
224
+ name : nutanix-ccm
225
225
---
226
226
apiVersion : v1
227
227
kind : Secret
228
228
metadata :
229
- name : ${CLUSTER_NAME}
229
+ name : ${CLUSTER_NAME}-pc-creds
230
230
stringData :
231
231
credentials : |
232
232
[
@@ -244,7 +244,7 @@ stringData:
244
244
apiVersion : v1
245
245
kind : Secret
246
246
metadata :
247
- name : ${CLUSTER_NAME}
247
+ name : nutanix-ccm-secret
248
248
stringData :
249
249
nutanix-ccm-secret.yaml : |
250
250
apiVersion: v1
@@ -271,7 +271,7 @@ type: addons.cluster.x-k8s.io/resource-set
271
271
apiVersion : addons.cluster.x-k8s.io/v1beta1
272
272
kind : ClusterResourceSet
273
273
metadata :
274
- name : ${CLUSTER_NAME}
274
+ name : nutanix-ccm-crs
275
275
spec :
276
276
clusterSelector :
277
277
matchLabels :
@@ -336,6 +336,7 @@ spec:
336
336
port : ${CONTROL_PLANE_ENDPOINT_PORT}
337
337
prismCentralEndpoint :
338
338
additionalTrustBundle : trust-bundle-root-ca
339
+ credentialSecret : ${CLUSTER_NAME}-pc-creds
339
340
host : ${NUTANIX_ENDPOINT}
340
341
insecure : ${NUTANIX_INSECURE}
341
342
port : 9440
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ binaryData:
3
3
ca.crt : ${NUTANIX_ADDITIONAL_TRUST_BUNDLE=""}
4
4
kind : ConfigMap
5
5
metadata :
6
- name : ${CLUSTER_NAME}
6
+ name : ${CLUSTER_NAME}-pc-trusted-ca-bundle
7
7
---
8
8
apiVersion : v1
9
9
data :
@@ -221,12 +221,12 @@ data:
221
221
name: nutanix-config
222
222
kind : ConfigMap
223
223
metadata :
224
- name : ${CLUSTER_NAME}
224
+ name : nutanix-ccm
225
225
---
226
226
apiVersion : v1
227
227
kind : Secret
228
228
metadata :
229
- name : ${CLUSTER_NAME}
229
+ name : ${CLUSTER_NAME}-pc-creds
230
230
stringData :
231
231
credentials : |
232
232
[
@@ -244,7 +244,7 @@ stringData:
244
244
apiVersion : v1
245
245
kind : Secret
246
246
metadata :
247
- name : ${CLUSTER_NAME}
247
+ name : nutanix-ccm-secret
248
248
stringData :
249
249
nutanix-ccm-secret.yaml : |
250
250
apiVersion: v1
@@ -271,7 +271,7 @@ type: addons.cluster.x-k8s.io/resource-set
271
271
apiVersion : addons.cluster.x-k8s.io/v1beta1
272
272
kind : ClusterResourceSet
273
273
metadata :
274
- name : ${CLUSTER_NAME}
274
+ name : nutanix-ccm-crs
275
275
spec :
276
276
clusterSelector :
277
277
matchLabels :
@@ -336,6 +336,7 @@ spec:
336
336
port : ${CONTROL_PLANE_ENDPOINT_PORT}
337
337
prismCentralEndpoint :
338
338
additionalTrustBundle : trust-bundle-root-ca
339
+ credentialSecret : ${CLUSTER_NAME}-pc-creds
339
340
host : ${NUTANIX_ENDPOINT}
340
341
insecure : ${NUTANIX_INSECURE}
341
342
port : 9440
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ patches:
63
63
host: $${NUTANIX_ENDPOINT}
64
64
insecure: $${NUTANIX_INSECURE}
65
65
port: 9440
66
+ credentialSecret: $${CLUSTER_NAME}-pc-creds
66
67
controlPlane:
67
68
nutanix:
68
69
machineDetails:
Original file line number Diff line number Diff line change @@ -105,7 +105,9 @@ kustomize build ./hack/examples |
105
105
> /dev/null
106
106
107
107
# shellcheck disable=SC2016
108
- sed -i' ' ' s/^ name: .\+$/ name: ${CLUSTER_NAME}/' " ${EXAMPLE_CLUSTERS_DIR} " /* .yaml
108
+ # TODO: deepakm-ntnx this is affecting examples of nutanix where there are 2 secrets gets same name
109
+ sed -i' ' ' s/^ name: .\+$/ name: ${CLUSTER_NAME}/' " ${EXAMPLE_CLUSTERS_DIR} " /aws* .yaml
110
+ sed -i' ' ' s/^ name: .\+$/ name: ${CLUSTER_NAME}/' " ${EXAMPLE_CLUSTERS_DIR} " /docker* .yaml
109
111
110
112
# TODO Remove once kustomize supports retaining quotes in what will be numeric values.
111
113
# shellcheck disable=SC2016
You can’t perform that action at this time.
0 commit comments