Skip to content

Commit

Permalink
temp: debug msg
Browse files Browse the repository at this point in the history
  • Loading branch information
robertchoi80 committed Apr 5, 2022
1 parent 79e2145 commit a5e2219
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tks-cluster/remove-usercluster-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,13 @@ spec:
--password $ARGO_PASSWORD
for appgroup in "lma service-mesh cluster-api-aws"; do
echo "(before) appgroup: $appgroup"
if [[ -n "{{workflow.parameters.app_prefix}}" ]]; then
appgroup="{{workflow.parameters.app_prefix}}-${appgroup}"
fi
echo "(after) appgroup: $appgroup"
app_list=$(./argocd app list -l ${appgroup} --output name)
echo -e "app list:\n $app_list"
if [[ $? -eq 0 && -n $app_list ]]; then
# Disable auto-sync
echo "Disabling auto-sync of $appgroup app group.."
Expand Down

0 comments on commit a5e2219

Please sign in to comment.