From 6d3bd495fcd011d82f2184ff458e900b4d55248b Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 2 Nov 2022 12:05:37 -0700 Subject: [PATCH] Fix error case in what-is-deployed script --- script/what-is-deployed | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/what-is-deployed b/script/what-is-deployed index 6df2449b90..f97e216f4a 100755 --- a/script/what-is-deployed +++ b/script/what-is-deployed @@ -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:"