Skip to content

Commit 0299a90

Browse files
fix prowlarr kill script
1 parent 4c537b4 commit 0299a90

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

argo/cluster/misc/redeployer/chart/values.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,16 @@ jobs:
8383
command: |
8484
#!/bin/bash
8585
86-
status=$(kubectl -n media get pod -l app.kubernetes.io/instance=prowlarr -o json | jq -r '.items[0].status.phase')
86+
unavailable=$(kubectl -n media get deployment -l app.kubernetes.io/instance=prowlarr -o json | jq -r '.items[0].status.unavailableReplicas')
8787
88-
if [ $status != "Running" ]; then
88+
if [ $unavailable != null ]; then
8989
echo Status is not running. Waiting 120 seconds...
9090
sleep 120
91-
status=$(kubectl -n media get pod -l app.kubernetes.io/instance=prowlarr -o json | jq -r '.items[0].status.phase')
92-
if [ $status != "Running" ]; then
91+
unavailable=$(kubectl -n media get deployment -l app.kubernetes.io/instance=prowlarr -o json | jq -r '.items[0].status.unavailableReplicas')
92+
if [ $unavailable != null ]; then
9393
echo Status still not running, deleting pods
9494
kubectl -n media delete pod -l app.kubernetes.io/instance=prowlarr
9595
fi
96+
else
97+
echo Status is healthy
9698
fi

0 commit comments

Comments
 (0)