Files
homelab/scripts/argocd-admin-password
Khue Doan 4384456220 refactor: move dev cluster to master
Easier to test and less maintenance
2025-01-18 11:35:28 +07:00

8 lines
295 B
Bash
Executable File

#!/bin/sh
set -eu
echo "WARNING: ArgoCD admin can do anything in the cluster, only use it for just enough initial setup or in emergencies." >&2
export KUBECONFIG=./metal/kubeconfig-${env}.yaml
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d