diff --git a/infra/clusters/templates/workflows-cluster.yaml b/infra/clusters/templates/workflows-cluster.yaml index b85d0b68cb27f8422508d651e07e5fb0791517e5..e9a7e807588a1ee4f8449a601d7886321be3f57b 100644 --- a/infra/clusters/templates/workflows-cluster.yaml +++ b/infra/clusters/templates/workflows-cluster.yaml @@ -436,12 +436,6 @@ spec: echo "y" | argocd login --username admin --password "$(kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath='{.data.password}' | base64 -d)" $(kubectl -n argocd get service argocd-server -o jsonpath='{.spec.clusterIP}') argocd cluster list argocd cluster get {{`{{inputs.parameters.name}}`}} - rc=$? - if [ "$rc" = "0" ]; then - echo "cluster {{`{{inputs.parameters.name}}`}} is already registered. ignoring." - exit 0 - fi - argocd cluster add --name {{`{{inputs.parameters.name}}`}} --kubeconfig /tmp/config {{`{{inputs.parameters.labels}}`}} --upsert default - name: cluster-config