khuedoan-homelab/scripts/argocd-admin-password
Khue Doan 1c586813a2 refactor: move dev cluster to master
Easier to test and less maintenance
2024-12-14 21:46:27 +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