Skip to content

Commit a57802f

Browse files
committed
Changed priority on load balancer
1 parent f41f728 commit a57802f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)