chore: update dev/null redirects

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2024-10-10 12:11:46 -04:00
1 parent 88996d0824
commit fd4f7643fa
3 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ tasks:
cmds:
- kubectl apply --server-side --kustomize {{.KUBERNETES_DIR}}/bootstrap/flux
- |
if ! kubectl --namespace flux-system get secret sops-age >/dev/null 2>&1; then
if ! kubectl --namespace flux-system get secret sops-age &>/dev/null; then
cat {{.SOPS_AGE_KEY_FILE}} | kubectl --namespace flux-system create secret generic sops-age --from-file=age.agekey=/dev/stdin
else
echo "sops-age secret already exists, skipping creation."