We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f80ba26 commit 7049b0dCopy full SHA for 7049b0d
1 file changed
support_bundle/get_support_bundle.sh
@@ -152,7 +152,7 @@ main() {
152
153
# If API key is supplied, check the backend version, and send a GET to the relevant endpoints.
154
if [[ ! -z ${API_KEY} ]]; then
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
+ 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
156
if [[ "$BACKEND_VERSION" =~ ^(7|6)$ ]]; then
157
if [[ "$API_LOCAL" == "true" ]]; then
158
kubectl ${KUBE_OPTS} port-forward service/sysdigcloud-api 8080 > /dev/null 2>&1 &
0 commit comments