File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
argo/cluster/misc/redeployer/chart Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -83,14 +83,16 @@ jobs:
83
83
command : |
84
84
#!/bin/bash
85
85
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 ')
87
87
88
- if [ $status != "Running" ]; then
88
+ if [ $unavailable != null ]; then
89
89
echo Status is not running. Waiting 120 seconds...
90
90
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
93
93
echo Status still not running, deleting pods
94
94
kubectl -n media delete pod -l app.kubernetes.io/instance=prowlarr
95
95
fi
96
+ else
97
+ echo Status is healthy
96
98
fi
You can’t perform that action at this time.
0 commit comments