File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments