Skip to content

Commit 166a5c7

Browse files
committed
Revert argocd cli password logic
1 parent 6539a92 commit 166a5c7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

terraform/files/scripts/argocd_config.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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"
3433
echo "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
3837
echo "Logging in to Argo CD with default password..."

0 commit comments

Comments
 (0)