Skip to content

Commit fecdc11

Browse files
committed
fixed the naming of all the objects which was getting overriden thru sync.sh
disabled for nutanix till we find a better solution for e2e
1 parent 9161137 commit fecdc11

File tree

6 files changed

+28
-21
lines changed

6 files changed

+28
-21
lines changed

examples/capi-quick-start/nutanix-cluster-calico-crs.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ binaryData:
33
ca.crt: ${NUTANIX_ADDITIONAL_TRUST_BUNDLE=""}
44
kind: ConfigMap
55
metadata:
6-
name: ${CLUSTER_NAME}
6+
name: ${CLUSTER_NAME}-pc-trusted-ca-bundle
77
---
88
apiVersion: v1
99
data:
@@ -221,12 +221,12 @@ data:
221221
name: nutanix-config
222222
kind: ConfigMap
223223
metadata:
224-
name: ${CLUSTER_NAME}
224+
name: nutanix-ccm
225225
---
226226
apiVersion: v1
227227
kind: Secret
228228
metadata:
229-
name: ${CLUSTER_NAME}
229+
name: ${CLUSTER_NAME}-pc-creds
230230
stringData:
231231
credentials: |
232232
[
@@ -244,7 +244,7 @@ stringData:
244244
apiVersion: v1
245245
kind: Secret
246246
metadata:
247-
name: ${CLUSTER_NAME}
247+
name: nutanix-ccm-secret
248248
stringData:
249249
nutanix-ccm-secret.yaml: |
250250
apiVersion: v1
@@ -271,7 +271,7 @@ type: addons.cluster.x-k8s.io/resource-set
271271
apiVersion: addons.cluster.x-k8s.io/v1beta1
272272
kind: ClusterResourceSet
273273
metadata:
274-
name: ${CLUSTER_NAME}
274+
name: nutanix-ccm-crs
275275
spec:
276276
clusterSelector:
277277
matchLabels:
@@ -336,6 +336,7 @@ spec:
336336
port: ${CONTROL_PLANE_ENDPOINT_PORT}
337337
prismCentralEndpoint:
338338
additionalTrustBundle: trust-bundle-root-ca
339+
credentialSecret: ${CLUSTER_NAME}-pc-creds
339340
host: ${NUTANIX_ENDPOINT}
340341
insecure: ${NUTANIX_INSECURE}
341342
port: 9440

examples/capi-quick-start/nutanix-cluster-calico-helm-addon.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ binaryData:
33
ca.crt: ${NUTANIX_ADDITIONAL_TRUST_BUNDLE=""}
44
kind: ConfigMap
55
metadata:
6-
name: ${CLUSTER_NAME}
6+
name: ${CLUSTER_NAME}-pc-trusted-ca-bundle
77
---
88
apiVersion: v1
99
data:
@@ -221,12 +221,12 @@ data:
221221
name: nutanix-config
222222
kind: ConfigMap
223223
metadata:
224-
name: ${CLUSTER_NAME}
224+
name: nutanix-ccm
225225
---
226226
apiVersion: v1
227227
kind: Secret
228228
metadata:
229-
name: ${CLUSTER_NAME}
229+
name: ${CLUSTER_NAME}-pc-creds
230230
stringData:
231231
credentials: |
232232
[
@@ -244,7 +244,7 @@ stringData:
244244
apiVersion: v1
245245
kind: Secret
246246
metadata:
247-
name: ${CLUSTER_NAME}
247+
name: nutanix-ccm-secret
248248
stringData:
249249
nutanix-ccm-secret.yaml: |
250250
apiVersion: v1
@@ -271,7 +271,7 @@ type: addons.cluster.x-k8s.io/resource-set
271271
apiVersion: addons.cluster.x-k8s.io/v1beta1
272272
kind: ClusterResourceSet
273273
metadata:
274-
name: ${CLUSTER_NAME}
274+
name: nutanix-ccm-crs
275275
spec:
276276
clusterSelector:
277277
matchLabels:
@@ -336,6 +336,7 @@ spec:
336336
port: ${CONTROL_PLANE_ENDPOINT_PORT}
337337
prismCentralEndpoint:
338338
additionalTrustBundle: trust-bundle-root-ca
339+
credentialSecret: ${CLUSTER_NAME}-pc-creds
339340
host: ${NUTANIX_ENDPOINT}
340341
insecure: ${NUTANIX_INSECURE}
341342
port: 9440

examples/capi-quick-start/nutanix-cluster-cilium-crs.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ binaryData:
33
ca.crt: ${NUTANIX_ADDITIONAL_TRUST_BUNDLE=""}
44
kind: ConfigMap
55
metadata:
6-
name: ${CLUSTER_NAME}
6+
name: ${CLUSTER_NAME}-pc-trusted-ca-bundle
77
---
88
apiVersion: v1
99
data:
@@ -221,12 +221,12 @@ data:
221221
name: nutanix-config
222222
kind: ConfigMap
223223
metadata:
224-
name: ${CLUSTER_NAME}
224+
name: nutanix-ccm
225225
---
226226
apiVersion: v1
227227
kind: Secret
228228
metadata:
229-
name: ${CLUSTER_NAME}
229+
name: ${CLUSTER_NAME}-pc-creds
230230
stringData:
231231
credentials: |
232232
[
@@ -244,7 +244,7 @@ stringData:
244244
apiVersion: v1
245245
kind: Secret
246246
metadata:
247-
name: ${CLUSTER_NAME}
247+
name: nutanix-ccm-secret
248248
stringData:
249249
nutanix-ccm-secret.yaml: |
250250
apiVersion: v1
@@ -271,7 +271,7 @@ type: addons.cluster.x-k8s.io/resource-set
271271
apiVersion: addons.cluster.x-k8s.io/v1beta1
272272
kind: ClusterResourceSet
273273
metadata:
274-
name: ${CLUSTER_NAME}
274+
name: nutanix-ccm-crs
275275
spec:
276276
clusterSelector:
277277
matchLabels:
@@ -336,6 +336,7 @@ spec:
336336
port: ${CONTROL_PLANE_ENDPOINT_PORT}
337337
prismCentralEndpoint:
338338
additionalTrustBundle: trust-bundle-root-ca
339+
credentialSecret: ${CLUSTER_NAME}-pc-creds
339340
host: ${NUTANIX_ENDPOINT}
340341
insecure: ${NUTANIX_INSECURE}
341342
port: 9440

examples/capi-quick-start/nutanix-cluster-cilium-helm-addon.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ binaryData:
33
ca.crt: ${NUTANIX_ADDITIONAL_TRUST_BUNDLE=""}
44
kind: ConfigMap
55
metadata:
6-
name: ${CLUSTER_NAME}
6+
name: ${CLUSTER_NAME}-pc-trusted-ca-bundle
77
---
88
apiVersion: v1
99
data:
@@ -221,12 +221,12 @@ data:
221221
name: nutanix-config
222222
kind: ConfigMap
223223
metadata:
224-
name: ${CLUSTER_NAME}
224+
name: nutanix-ccm
225225
---
226226
apiVersion: v1
227227
kind: Secret
228228
metadata:
229-
name: ${CLUSTER_NAME}
229+
name: ${CLUSTER_NAME}-pc-creds
230230
stringData:
231231
credentials: |
232232
[
@@ -244,7 +244,7 @@ stringData:
244244
apiVersion: v1
245245
kind: Secret
246246
metadata:
247-
name: ${CLUSTER_NAME}
247+
name: nutanix-ccm-secret
248248
stringData:
249249
nutanix-ccm-secret.yaml: |
250250
apiVersion: v1
@@ -271,7 +271,7 @@ type: addons.cluster.x-k8s.io/resource-set
271271
apiVersion: addons.cluster.x-k8s.io/v1beta1
272272
kind: ClusterResourceSet
273273
metadata:
274-
name: ${CLUSTER_NAME}
274+
name: nutanix-ccm-crs
275275
spec:
276276
clusterSelector:
277277
matchLabels:
@@ -336,6 +336,7 @@ spec:
336336
port: ${CONTROL_PLANE_ENDPOINT_PORT}
337337
prismCentralEndpoint:
338338
additionalTrustBundle: trust-bundle-root-ca
339+
credentialSecret: ${CLUSTER_NAME}-pc-creds
339340
host: ${NUTANIX_ENDPOINT}
340341
insecure: ${NUTANIX_INSECURE}
341342
port: 9440

hack/examples/base/nutanix/cluster-topology/kustomization.yaml.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ patches:
6363
host: $${NUTANIX_ENDPOINT}
6464
insecure: $${NUTANIX_INSECURE}
6565
port: 9440
66+
credentialSecret: $${CLUSTER_NAME}-pc-creds
6667
controlPlane:
6768
nutanix:
6869
machineDetails:

hack/examples/sync.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ kustomize build ./hack/examples |
105105
>/dev/null
106106

107107
#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
109111

110112
# TODO Remove once kustomize supports retaining quotes in what will be numeric values.
111113
#shellcheck disable=SC2016

0 commit comments

Comments
 (0)