diff --git a/.taskfiles/bootstrap/Taskfile.yaml b/.taskfiles/bootstrap/Taskfile.yaml index 7d51968e65899..e26cdb2934c6c 100644 --- a/.taskfiles/bootstrap/Taskfile.yaml +++ b/.taskfiles/bootstrap/Taskfile.yaml @@ -29,7 +29,7 @@ tasks: requires: vars: ['CLUSTER', 'NODES', 'DISK'] preconditions: - - talosctl config info >/dev/null 2>&1 + - talosctl config info &>/dev/null - test -f {{.KUBERNETES_DIR}}/{{.CLUSTER}}/talosconfig etcd: @@ -37,7 +37,7 @@ tasks: cmd: until talosctl --nodes {{.TALOS_CONTROLLER}} bootstrap; do sleep 10; done preconditions: - test -f {{.KUBERNETES_DIR}}/{{.CLUSTER}}/talosconfig - - talosctl config info >/dev/null 2>&1 + - talosctl config info &>/dev/null apps: internal: true @@ -48,14 +48,14 @@ tasks: preconditions: - test -f {{.KUBERNETES_DIR}}/{{.CLUSTER}}/talosconfig - test -f {{.KUBERNETES_DIR}}/{{.CLUSTER}}/bootstrap/helmfile.yaml - - talosctl config info >/dev/null 2>&1 + - talosctl config info &>/dev/null conf: internal: true cmd: talosctl kubeconfig --nodes {{.TALOS_CONTROLLER}} --force --force-context-name {{.CLUSTER}} {{.KUBERNETES_DIR}}/{{.CLUSTER}} preconditions: - test -f {{.KUBERNETES_DIR}}/{{.CLUSTER}}/talosconfig - - talosctl config info >/dev/null 2>&1 + - talosctl config info &>/dev/null flux: internal: true diff --git a/.taskfiles/talos/Taskfile.yaml b/.taskfiles/talos/Taskfile.yaml index 9d79cd172be34..f1fe908276558 100644 --- a/.taskfiles/talos/Taskfile.yaml +++ b/.taskfiles/talos/Taskfile.yaml @@ -33,7 +33,7 @@ tasks: preconditions: - test -f {{.KUBERNETES_DIR}}/{{.CLUSTER}}/talosconfig - test -f {{.KUBERNETES_DIR}}/{{.CLUSTER}}/bootstrap/talos/assets/{{.HOSTNAME}}.secret.sops.yaml - - talosctl --nodes {{.HOSTNAME}} get machineconfig >/dev/null 2>&1 + - talosctl --nodes {{.HOSTNAME}} get machineconfig &>/dev/null upgrade: desc: Upgrade Talos on a node @@ -47,8 +47,8 @@ tasks: vars: ['CLUSTER', 'HOSTNAME'] preconditions: - test -f {{.KUBERNETES_DIR}}/{{.CLUSTER}}/talosconfig - - talosctl config info >/dev/null 2>&1 - - talosctl --nodes {{.HOSTNAME}} get machineconfig >/dev/null 2>&1 + - talosctl config info &>/dev/null + - talosctl --nodes {{.HOSTNAME}} get machineconfig &>/dev/null upgrade-k8s: desc: Upgrade Kubernetes @@ -60,8 +60,8 @@ tasks: vars: ['CLUSTER'] preconditions: - test -f {{.KUBERNETES_DIR}}/{{.CLUSTER}}/talosconfig - - talosctl config info >/dev/null 2>&1 - - talosctl --nodes {{.TALOS_CONTROLLER}} get machineconfig >/dev/null 2>&1 + - talosctl config info &>/dev/null + - talosctl --nodes {{.TALOS_CONTROLLER}} get machineconfig &>/dev/null reset-node: desc: Reset a Talos node and shut it down @@ -71,8 +71,8 @@ tasks: vars: ['CLUSTER', 'HOSTNAME'] preconditions: - test -f {{.KUBERNETES_DIR}}/{{.CLUSTER}}/talosconfig - - talosctl config info >/dev/null 2>&1 - - talosctl --nodes {{.HOSTNAME}} get machineconfig >/dev/null 2>&1 + - talosctl config info &>/dev/null + - talosctl --nodes {{.HOSTNAME}} get machineconfig &>/dev/null reset-cluster: desc: Reset all the Talos nodes and shut 'em down @@ -85,8 +85,8 @@ tasks: vars: ['CLUSTER'] preconditions: - test -f {{.KUBERNETES_DIR}}/{{.CLUSTER}}/talosconfig - - talosctl config info >/dev/null 2>&1 - - talosctl --nodes {{.NODES}} get machineconfig >/dev/null 2>&1 + - talosctl config info &>/dev/null + - talosctl --nodes {{.NODES}} get machineconfig &>/dev/null bootstrap-matchbox: desc: Bootstrap required Matchbox configuration to PXE Boot machine diff --git a/.taskfiles/volsync/resources/which-controller.sh b/.taskfiles/volsync/resources/which-controller.sh index f84624a0e81ae..9f5e4d2a10f48 100755 --- a/.taskfiles/volsync/resources/which-controller.sh +++ b/.taskfiles/volsync/resources/which-controller.sh @@ -4,11 +4,11 @@ APP=$1 NAMESPACE="${2:-default}" is_deployment() { - kubectl --namespace "${NAMESPACE}" get deployment "${APP}" >/dev/null 2>&1 + kubectl --namespace "${NAMESPACE}" get deployment "${APP}" &>/dev/null } is_statefulset() { - kubectl --namespace "${NAMESPACE}" get statefulset "${APP}" >/dev/null 2>&1 + kubectl --namespace "${NAMESPACE}" get statefulset "${APP}" &>/dev/null } if is_deployment; then diff --git a/kubernetes/main/apps/default/sonarr/app/resources/refresh-series.sh b/kubernetes/main/apps/default/sonarr/app/resources/refresh-series.sh index f88c7233b1ec8..3bef9c5de6f53 100755 --- a/kubernetes/main/apps/default/sonarr/app/resources/refresh-series.sh +++ b/kubernetes/main/apps/default/sonarr/app/resources/refresh-series.sh @@ -13,6 +13,6 @@ if [[ "${sonarr_eventtype:-}" == "Grab" ]]; then --header "X-Api-Key: ${SONARR__AUTH__APIKEY}" \ --header "Content-Type: application/json" \ --data-binary '{"name": "RefreshSeries", "seriesId": '"${sonarr_series_id}"'}' \ - --request POST "http://localhost:${SONARR__SERVER__PORT}/api/v3/command" &> /dev/null + --request POST "http://localhost:${SONARR__SERVER__PORT}/api/v3/command" &>/dev/null fi fi