Files
homelab/scripts/create_flux_secret.sh
T
Daniel Cosme f557db5da6 Change flux secret from PQ to non PQ
On version 2.9 of flux (planned for Q2) PQ Keys will be supported
2026-04-21 09:00:26 -04:00

14 lines
329 B
Bash
Executable File

#!/bin/sh
set -eu
if [ -z "${AGE_KEY_NO_PQ}" ]; then
echo "unbound variable"
fi
if [ ! -f "${AGE_KEY_NO_PQ}" ]; then
echo "Error: ${AGE_KEY_NO_PQ} file does not exist"
exit 1
fi
cat $AGE_KEY_NO_PQ | kubectl --kubeconfig ~/.kube/hydra create secret generic sops-age --namespace=flux-system --from-file=age.agekey=/dev/stdin