From 7b6039337aa47c3b702ab6566b70a715f5b93abc Mon Sep 17 00:00:00 2001 From: Diego Martin Hernandez Date: Fri, 31 May 2024 13:43:48 +0100 Subject: [PATCH] Update get_support_bundle.sh Now if the backend version is higher than 6.5, it should get the sysdigcloud-values secret which include different settings such as JVM etc... --- support_bundle/get_support_bundle.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/support_bundle/get_support_bundle.sh b/support_bundle/get_support_bundle.sh index a313f00..331fe8f 100755 --- a/support_bundle/get_support_bundle.sh +++ b/support_bundle/get_support_bundle.sh @@ -480,6 +480,12 @@ main() { echo "Fetching the sysdigcloud-config ConfigMap" 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 + echo "Fetching the sysdigcloud-values Secret" + kubectl -n sysdigcloud get secret sysdigcloud-values -o jsonpath='{.data.values\.yaml}' | base64 -d > ${LOG_DIR}/values.yaml || true + fi + # Generate the bundle name, create a tarball, and remove the temp log directory BUNDLE_NAME=$(date +%s)_sysdig_cloud_support_bundle.tgz echo "Creating the ${BUNDLE_NAME} archive now"