fix(ops): select region pods without deletion timestamp
This commit is contained in:
@@ -28,7 +28,7 @@ ns="evolution-$env"
|
||||
selector=app.kubernetes.io/name=evo-region
|
||||
|
||||
pod_name() { "${k[@]}" get pods -n "$ns" -l "$selector" \
|
||||
-o jsonpath='{range .items[?(@.metadata.deletionTimestamp == "")]}{.metadata.name}{"\n"}{end}' |
|
||||
-o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}' |
|
||||
head -1; }
|
||||
ready_pod() { # Waits (up to 120 s) for a Ready pod other than $1; prints its name.
|
||||
local old="$1"
|
||||
|
||||
Reference in New Issue
Block a user