Skip to content

Commit b2d8bd1

Browse files
committed
Update get_support_bundle.sh
1 parent 4617d0b commit b2d8bd1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

support_bundle/get_support_bundle.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,9 @@ main() {
481481
kubectl ${KUBE_OPTS} get configmap sysdigcloud-config -o yaml | grep -v password | grep -v apiVersion > ${LOG_DIR}/config.yaml || true
482482

483483
# 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
484+
major=$(echo $version | awk -F. '{ print $1 }')
485+
minor=$(echo $version | awk -F. '{ print $2 }')
486+
if [[ $major -gt 6]] || [[ $major -eq 6]] && [[ $minor -ge 5 ]]; then
485487
echo "Fetching the sysdigcloud-values Secret"
486488
kubectl ${KUBE_OPTS} get secret sysdigcloud-values -o jsonpath='{.data.values\.yaml}' | base64 -d > ${LOG_DIR}/values.yaml || true
487489
fi

0 commit comments

Comments
 (0)