chore: update dev/null redirects
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
3 files changed
+7
-7
No files matched your search
@@ -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."
|
||||
|
||||
@@ -15,7 +15,7 @@ tasks:
|
||||
cmds:
|
||||
- cmd: |
|
||||
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"
|
||||
echo "Encrypted ${file}"
|
||||
fi
|
||||
|
||||
@@ -50,9 +50,9 @@ tasks:
|
||||
- msg: Missing talosconfig
|
||||
sh: test -f {{.TALOSCONFIG}}
|
||||
- msg: Unable to retrieve Talos config
|
||||
sh: talosctl config info >/dev/null 2>&1
|
||||
sh: talosctl config info &>/dev/null
|
||||
- msg: Node not found
|
||||
sh: talosctl --nodes {{.NODE}} get machineconfig >/dev/null 2>&1
|
||||
sh: talosctl --nodes {{.NODE}} get machineconfig &>/dev/null
|
||||
|
||||
upgrade-k8s:
|
||||
desc: Upgrade Kubernetes across the cluster
|
||||
@@ -64,11 +64,11 @@ tasks:
|
||||
- msg: Missing talosconfig
|
||||
sh: test -f {{.TALOSCONFIG}}
|
||||
- msg: Unable to retrieve Talos config
|
||||
sh: talosctl config info >/dev/null 2>&1
|
||||
sh: talosctl config info &>/dev/null
|
||||
- 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
|
||||
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:
|
||||
desc: Resets nodes back to maintenance mode
|
||||
|
||||
Reference in new issue
Block a user