We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4617d0b commit b2d8bd1Copy full SHA for b2d8bd1
1 file changed
support_bundle/get_support_bundle.sh
@@ -481,7 +481,9 @@ main() {
481
kubectl ${KUBE_OPTS} get configmap sysdigcloud-config -o yaml | grep -v password | grep -v apiVersion > ${LOG_DIR}/config.yaml || true
482
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
+ 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
487
echo "Fetching the sysdigcloud-values Secret"
488
kubectl ${KUBE_OPTS} get secret sysdigcloud-values -o jsonpath='{.data.values\.yaml}' | base64 -d > ${LOG_DIR}/values.yaml || true
489
fi
0 commit comments