File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,9 @@ echo "Showing Argo CD version info for [$ARGOCD_FQDN]..."
2929" $ARGOCD_PATH " version --server " $ARGOCD_FQDN "
3030
3131# Get default admin password
32- # Argo CD v1.9 and later: https://argoproj.github.io/argo-cd/getting_started/#4-login-using-the-cli
33- # check secret called "argocd-initial-admin-secret"
32+ # default password is server pod name, eg: "argocd-server-89c6cd7d4-xxxxx"
3433echo " Getting default admin password..."
35- DEFAULT_ARGO_ADMIN_PASSWORD=$( kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath= " {.data.password} " | base64 -d)
34+ DEFAULT_ARGO_ADMIN_PASSWORD=$( kubectl get pods -n argocd -l app.kubernetes.io/name= argocd-server -o name | cut -d' / ' -f 2 )
3635
3736# Login
3837echo " Logging in to Argo CD with default password..."
You can’t perform that action at this time.
0 commit comments