Skip to content

Commit f345c6f

Browse files
committed
fix: r
Signed-off-by: ashing <[email protected]>
1 parent 4454e87 commit f345c6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/provider/adc/translator/httproute.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ func (t *Translator) translateBackendRef(tctx *provider.TranslateContext, ref ga
341341
return t.translateEndpointSlice(portName, weight, endpointSlices)
342342
}
343343

344+
// calculateHTTPRoutePriority calculates the priority of the HTTP route.
345+
// ref: https://github.com/Kong/kubernetes-ingress-controller/blob/57472721319e2c63e56cb8540425257e8e02520f/internal/dataplane/translator/subtranslator/httproute_atc.go#L279-L296
344346
func calculateHTTPRoutePriority(match *gatewayv1.HTTPRouteMatch, ruleIndex int) uint64 {
345347
const (
346348
// ExactPathShiftBits assigns bit 34 to mark if the match is exact path match.

0 commit comments

Comments
 (0)