Fix error case in what-is-deployed script
This commit is contained in:
parent
cc1325d6f9
commit
6d3bd495fc
1 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,9 @@ job_image_ids=$(
|
||||||
kubectl \
|
kubectl \
|
||||||
--namespace=${environment} \
|
--namespace=${environment} \
|
||||||
get jobs \
|
get jobs \
|
||||||
-o 'jsonpath={range .items[0:5]}{.spec.template.spec.containers[0].image}{"\n"}{end}'
|
-o 'jsonpath={range .items[0:5]}{.spec.template.spec.containers[0].image}{"\n"}{end}' \
|
||||||
|
2> /dev/null \
|
||||||
|
|| true
|
||||||
)
|
)
|
||||||
|
|
||||||
echo "Deployed image version:"
|
echo "Deployed image version:"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue