From b2d8bd1c8f9be308d19e22de34ed03ccb486b1f2 Mon Sep 17 00:00:00 2001 From: Diego Martin Hernandez Date: Fri, 14 Jun 2024 13:58:48 +0100 Subject: [PATCH] Update get_support_bundle.sh --- support_bundle/get_support_bundle.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/support_bundle/get_support_bundle.sh b/support_bundle/get_support_bundle.sh index 3e0e642..b9eb9fd 100755 --- a/support_bundle/get_support_bundle.sh +++ b/support_bundle/get_support_bundle.sh @@ -481,7 +481,9 @@ main() { kubectl ${KUBE_OPTS} get configmap sysdigcloud-config -o yaml | grep -v password | grep -v apiVersion > ${LOG_DIR}/config.yaml || true # Collect the sysdigcloud-values secret, and write to the log directory if the backend version is 6.5 or higher - if [[ "$BACKEND_VERSION" =~ ^(6.5) ]]; then + major=$(echo $version | awk -F. '{ print $1 }') + minor=$(echo $version | awk -F. '{ print $2 }') + if [[ $major -gt 6]] || [[ $major -eq 6]] && [[ $minor -ge 5 ]]; then echo "Fetching the sysdigcloud-values Secret" kubectl ${KUBE_OPTS} get secret sysdigcloud-values -o jsonpath='{.data.values\.yaml}' | base64 -d > ${LOG_DIR}/values.yaml || true fi