Skip to content

Commit

Permalink
[patch] workaround login issue with argocd v2.14.2 cli causing fvtsaa…
Browse files Browse the repository at this point in the history
…s to fail (#1477)
  • Loading branch information
tomklapiscak authored Feb 19, 2025
1 parent 8cd01c4 commit 9eb2574
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion image/cli/mascli/functions/gitops_bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function gitops_bootstrap() {
fi

# 12. Add cluster to ARgoCD
argocd login ${ARGOCD_URL} --username ${ARGOCD_USERNAME} --password ${ARGOCD_PASSWORD} --insecure
argocd login ${ARGOCD_URL} --username ${ARGOCD_USERNAME} --password ${ARGOCD_PASSWORD} --insecure --skip-test-tls
export K8S_AUTH_CONTEXT=$(oc whoami -c)
argocd cluster add $K8S_AUTH_CONTEXT -y
rc=$?
Expand Down
2 changes: 1 addition & 1 deletion image/cli/mascli/functions/gitops_utils
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ function argocd_login() {
exit 1
fi
echo "argo:argocd_login : ARGOCD_URL=$ARGOCD_URL ARGOCD_USERNAME=$ARGOCD_USERNAME ARGOCD_PASSWORD=${ARGOCD_PASSWORD:0:8}<snip> ..."
argocd login $ARGOCD_URL --username $ARGOCD_USERNAME --password $ARGOCD_PASSWORD --insecure
argocd login $ARGOCD_URL --username $ARGOCD_USERNAME --password $ARGOCD_PASSWORD --insecure --skip-test-tls
return_code=$?
echo "argo:argocd_login : return_code=$return_code"

Expand Down

0 comments on commit 9eb2574

Please sign in to comment.