File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,8 @@ jobs:
130130 # Remove existing route rules for the PR service
131131 yq -i '.pathMatchers[] |= (.routeRules |= map(select((.routeAction.weightedBackendServices // []) | length == 0 or .routeAction.weightedBackendServices[0].backendService != env(PR_SERVICE))))' config.yml
132132 # Add new route rules for the PR service
133- export MAX_PRIORITY =$(yq '[.pathMatchers[] | select(.name == "all-paths") | .routeRules[]?.priority] | max // 0' config.yml)
134- export NEXT_PRIORITY=$((MAX_PRIORITY + 1))
133+ export MIN_PRIORITY =$(yq '[.pathMatchers[] | select(.name == "all-paths") | .routeRules[]?.priority] | min // 0' config.yml)
134+ export NEXT_PRIORITY=$((MIN_PRIORITY - 1))
135135 LABELS_JSON=$(echo "$LABELS" | jq -c '[.[] | select(.name | test("\\.ghost\\.is$")) | .name]')
136136 for LABEL in $(echo "$LABELS_JSON" | jq -r '.[]'); do
137137 echo "Adding route for label: $LABEL"
You can’t perform that action at this time.
0 commit comments