From 78132d2c7dff8f7ecc39cb8d3e7e517a13678f5c Mon Sep 17 00:00:00 2001 From: Jugwan Eom Date: Mon, 13 Jun 2022 11:17:56 +0000 Subject: [PATCH] support multi cluster api infra providers --- templates/argo-cd/prepare-argocd-wftpl.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/templates/argo-cd/prepare-argocd-wftpl.yaml b/templates/argo-cd/prepare-argocd-wftpl.yaml index d185818..31da5fd 100644 --- a/templates/argo-cd/prepare-argocd-wftpl.yaml +++ b/templates/argo-cd/prepare-argocd-wftpl.yaml @@ -77,10 +77,20 @@ spec: ./argocd proj create sealed-secrets --dest "*,*" --src "*" --allow-cluster-resource "*/*" fi + ./argocd proj get tks-cluster-common + if [[ $? != 0 ]]; then + ./argocd proj create tks-cluster-common --dest "*,*" --src "*" --allow-cluster-resource "*/*" + fi + ./argocd proj get tks-cluster-aws if [[ $? != 0 ]]; then ./argocd proj create tks-cluster-aws --dest "*,*" --src "*" --allow-cluster-resource "*/*" - fi + fi + + ./argocd proj get tks-cluster-byoh + if [[ $? != 0 ]]; then + ./argocd proj create tks-cluster-byoh --dest "*,*" --src "*" --allow-cluster-resource "*/*" + fi ./argocd proj get admin-tools if [[ $? != 0 ]]; then