From 4028d218aa1592de62f186a44e1c77e83ac281d2 Mon Sep 17 00:00:00 2001 From: "taekyu.kang" Date: Wed, 2 Oct 2024 14:41:48 +0900 Subject: [PATCH] bugfix. change kcp name CLUSTERID_control_plane to CLUSTERID --- tks-cluster/create-usercluster-wftpl.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tks-cluster/create-usercluster-wftpl.yaml b/tks-cluster/create-usercluster-wftpl.yaml index 8ef3175..d7a47bc 100644 --- a/tks-cluster/create-usercluster-wftpl.yaml +++ b/tks-cluster/create-usercluster-wftpl.yaml @@ -653,7 +653,7 @@ spec: case $INFRA_PROVIDER in aws) # check whether admin cluster is managed or not - kcp_count=$(kubectl get kcp -n default $CLUSTER-control-plane | grep -v NAME | wc -l) + kcp_count=$(kubectl get kcp -n default $CLUSTER | grep -v NAME | wc -l) awsmcp_count=$(kubectl get awsmcp -n default $CLUSTER | grep -v NAME | wc -l) if [ $kcp_count = 1 ]; then # Self-managed control plane cluster