From fc61aef8eecee1ebfaeeb4440d00ec86f79e3aa6 Mon Sep 17 00:00:00 2001 From: "taekyu.kang" Date: Wed, 17 Apr 2024 14:09:05 +0900 Subject: [PATCH] trivial. fix syntax error --- 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 a55fa498..4cce7e07 100644 --- a/tks-cluster/create-usercluster-wftpl.yaml +++ b/tks-cluster/create-usercluster-wftpl.yaml @@ -451,7 +451,7 @@ spec: kubectl label ns ${CLUSTER_ID} tks.io/policy=${CLUSTER_ID} else POLICY_NS=$(kubectl get ns $(kubectl get ns -l tks.io/organization=${CONTRACT_ID} --ignore-not-found=true | grep -v NAME | awk '{print $1}' | head -n 1 ) --ignore-not-found=true -o jsonpath='{.metadata.labels.tks\.io\/policy}' ) - if [ -z "$POLICY_NS" ]"; then + if [ -z "$POLICY_NS" ]; then kubectl label ns ${CLUSTER_ID} tks.io/policy=${CLUSTER_ID} else kubectl label ns ${CLUSTER_ID} tks.io/policy=${POLICY_NS}