File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -151,8 +151,8 @@ main() {
151151 exit 1
152152 fi
153153
154- echo " $( kubectl ${CONTEXT_OPTS} ${KUBE_OPTS} get deployment sysdigcloud-api -ojsonpath=' {.spec.template.spec.containers[0].image}' | awk -F: ' { print $2 }' ) " > ${LOG_DIR} /backend_version.txt
155- BACKEND_VERSION=$( kubectl ${CONTEXT_OPTS} ${KUBE_OPTS} get deployment sysdigcloud-api -ojsonpath=' {.spec.template.spec.containers[0].image}' | awk -F: ' { print $2 }' | awk -F. ' { print $1 }' ) || true
154+ echo " $( kubectl ${CONTEXT_OPTS} ${KUBE_OPTS} get deployment sysdigcloud-api -ojsonpath=' {.spec.template.spec.containers[0].image}' | awk -F: ' { print $NF }' ) " > ${LOG_DIR} /backend_version.txt
155+ BACKEND_VERSION=$( kubectl ${CONTEXT_OPTS} ${KUBE_OPTS} get deployment sysdigcloud-api -ojsonpath=' {.spec.template.spec.containers[0].image}' | awk -F: ' { print $NF }' | awk -F. ' { print $1 }' ) || true
156156
157157 # If API key is supplied, check the backend version, and send a GET to the relevant endpoints.
158158 if [[ ! -z ${API_KEY} ]]; then
You can’t perform that action at this time.
0 commit comments