Skip to content

Commit aecf533

Browse files
committed
fix case
1 parent 6023693 commit aecf533

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/provider/adc/translator/httproute.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,9 @@ func (t *Translator) translateBackendRef(tctx *provider.TranslateContext, ref ga
305305
}
306306

307307
weight := 1
308+
if ref.Weight != nil {
309+
weight = int(*ref.Weight)
310+
}
308311

309312
if service.Spec.Type == corev1.ServiceTypeExternalName {
310313
port := 80

0 commit comments

Comments
 (0)