From 0c9ceb51e64eb3b721697d0456331243f515d6f9 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 21 Oct 2022 14:25:12 -0700 Subject: [PATCH] Add what-is-deployed-script --- script/what-is-deployed | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 script/what-is-deployed diff --git a/script/what-is-deployed b/script/what-is-deployed new file mode 100755 index 0000000000..384686493f --- /dev/null +++ b/script/what-is-deployed @@ -0,0 +1,17 @@ +#!/bin/bash + +set -eu +source script/lib/deploy-helpers.sh + +if [[ $# < 1 ]]; then + echo "Usage: $0 " + exit 1 +fi +ZED_KUBE_NAMESPACE=$1 + +export_vars_for_environment $ZED_KUBE_NAMESPACE +target_zed_kube_cluster + +IMAGE_ID=$(kubectl --namespace=${ZED_KUBE_NAMESPACE} get deployment collab -o 'jsonpath={.spec.template.spec.containers[0].image}') + +echo "Deployed image on ${ZED_KUBE_NAMESPACE}:" $(version_for_image_id $IMAGE_ID) \ No newline at end of file