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