Fix error case in what-is-deployed script

This commit is contained in:
Max Brunsfeld 2022-11-02 12:05:37 -07:00
parent cc1325d6f9
commit 6d3bd495fc

View File

@ -24,7 +24,9 @@ job_image_ids=$(
kubectl \
--namespace=${environment} \
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:"