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: cmds:
- kubectl apply --server-side --kustomize {{.KUBERNETES_DIR}}/bootstrap/flux - 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 cat {{.SOPS_AGE_KEY_FILE}} | kubectl --namespace flux-system create secret generic sops-age --from-file=age.agekey=/dev/stdin
else else
echo "sops-age secret already exists, skipping creation." echo "sops-age secret already exists, skipping creation."
+1 -1
View File
@@ -15,7 +15,7 @@ tasks:
cmds: cmds:
- cmd: | - cmd: |
find "{{.KUBERNETES_DIR}}" -type f -name "*.sops.*" | while read -r file; do find "{{.KUBERNETES_DIR}}" -type f -name "*.sops.*" | while read -r file; do
if sops filestatus "$file" | jq --exit-status ".encrypted == false" > /dev/null; then if sops filestatus "$file" | jq --exit-status ".encrypted == false" &>/dev/null; then
sops --encrypt --in-place "$file" sops --encrypt --in-place "$file"
echo "Encrypted ${file}" echo "Encrypted ${file}"
fi fi
+5 -5
View File
@@ -50,9 +50,9 @@ tasks:
- msg: Missing talosconfig - msg: Missing talosconfig
sh: test -f {{.TALOSCONFIG}} sh: test -f {{.TALOSCONFIG}}
- msg: Unable to retrieve Talos config - msg: Unable to retrieve Talos config
sh: talosctl config info >/dev/null 2>&1 sh: talosctl config info &>/dev/null
- msg: Node not found - msg: Node not found
sh: talosctl --nodes {{.NODE}} get machineconfig >/dev/null 2>&1 sh: talosctl --nodes {{.NODE}} get machineconfig &>/dev/null
upgrade-k8s: upgrade-k8s:
desc: Upgrade Kubernetes across the cluster desc: Upgrade Kubernetes across the cluster
@@ -64,11 +64,11 @@ tasks:
- msg: Missing talosconfig - msg: Missing talosconfig
sh: test -f {{.TALOSCONFIG}} sh: test -f {{.TALOSCONFIG}}
- msg: Unable to retrieve Talos config - msg: Unable to retrieve Talos config
sh: talosctl config info >/dev/null 2>&1 sh: talosctl config info &>/dev/null
- msg: Node not found - msg: Node not found
sh: talosctl --nodes {{.NODE}} get machineconfig >/dev/null 2>&1 sh: talosctl --nodes {{.NODE}} get machineconfig &>/dev/null
- msg: Node not controller - msg: Node not controller
sh: talosctl config info --output json | jq --exit-status '.endpoints | index("{{.NODE}}") != null' sh: talosctl config info --output json | jq --exit-status '.endpoints | index("{{.NODE}}") != null' &>/dev/null
nuke: nuke:
desc: Resets nodes back to maintenance mode desc: Resets nodes back to maintenance mode