Skip to content

Commit 7b60393

Browse files
committed
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...
1 parent fce9937 commit 7b60393

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

support_bundle/get_support_bundle.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,12 @@ main() {
480480
echo "Fetching the sysdigcloud-config ConfigMap"
481481
kubectl ${KUBE_OPTS} get configmap sysdigcloud-config -o yaml | grep -v password | grep -v apiVersion > ${LOG_DIR}/config.yaml || true
482482

483+
# Collect the sysdigcloud-values secret, and write to the log directory if the backend version is 6.5 or higher
484+
if [[ "$BACKEND_VERSION" =~ ^(6.5) ]]; then
485+
echo "Fetching the sysdigcloud-values Secret"
486+
kubectl -n sysdigcloud get secret sysdigcloud-values -o jsonpath='{.data.values\.yaml}' | base64 -d > ${LOG_DIR}/values.yaml || true
487+
fi
488+
483489
# Generate the bundle name, create a tarball, and remove the temp log directory
484490
BUNDLE_NAME=$(date +%s)_sysdig_cloud_support_bundle.tgz
485491
echo "Creating the ${BUNDLE_NAME} archive now"

0 commit comments

Comments
 (0)