Skip to content

Commit d057806

Browse files
committed
fix: reduce length of name for spoke cluster
Signed-off-by: Chris Butler <chris.butler@redhat.com>
1 parent 0020c50 commit d057806

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

rhdp/wrapper-multicluster.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ kind: ManagedCluster
212212
metadata:
213213
name: coco-spoke
214214
labels:
215-
clusterGroup: untrusted-spoke
215+
clusterGroup: spoke
216216
cloud: auto-detect
217217
vendor: auto-detect
218218
spec:
@@ -285,10 +285,10 @@ EOF
285285

286286
# Verify the label is set correctly
287287
CLUSTER_LABEL=$(kubectl get managedcluster coco-spoke -o jsonpath='{.metadata.labels.clusterGroup}' 2>/dev/null)
288-
if [ "$CLUSTER_LABEL" == "untrusted-spoke" ]; then
289-
echo "✓ Cluster label 'clusterGroup=untrusted-spoke' verified"
288+
if [ "$CLUSTER_LABEL" == "spoke" ]; then
289+
echo "✓ Cluster label 'clusterGroup=spoke' verified"
290290
else
291-
echo "WARNING: Cluster label is '$CLUSTER_LABEL' (expected: untrustedSpoke)"
291+
echo "WARNING: Cluster label is '$CLUSTER_LABEL' (expected: spoke)"
292292
fi
293293

294294
echo "---------------------"
@@ -326,7 +326,7 @@ if [ -n "$SPOKE_IMPORT_STATUS" ]; then
326326
echo "Spoke cluster import to ACM: $SPOKE_IMPORT_STATUS"
327327
if [ "$SPOKE_IMPORT_STATUS" == "SUCCESS" ]; then
328328
echo " - Cluster name: coco-spoke"
329-
echo " - Label: clusterGroup=untrustedSpoke"
329+
echo " - Label: clusterGroup=spoke"
330330
fi
331331
fi
332332

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This is currently configured as an 'all in one' deployment in one cluster.
22

33
clusterGroup:
4-
name: untrusted-spoke
4+
name: spoke
55
isHubCluster: false
66
namespaces:
77
- golang-external-secrets

values-trusted-hub.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ clusterGroup:
9696
verbosity: -vvv
9797
timeout: 3600
9898
managedClusterGroups:
99-
untrusted-spoke:
100-
name: untrusted-spoke
99+
spoke:
100+
name: spoke
101101
acmlabels:
102102
- name: clusterGroup
103-
value: untrusted-spoke
103+
value: spoke
104104
helmOverrides:
105105
- name: clusterGroup.isHubCluster
106106
value: false

0 commit comments

Comments
 (0)