Skip to content

Commit 58ef50b

Browse files
Fix: gen-check ci, coverage-check
Signed-off-by: anurag.ag <[email protected]>
1 parent 573a483 commit 58ef50b

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

internal/gatewayapi/testdata/backendtrafficpolicy-with-loadbalancer.out.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ backendTrafficPolicies:
9696
namespace: default
9797
spec:
9898
loadBalancer:
99-
type: ClientSideWeightedRoundRobin
10099
clientSideWeightedRoundRobin:
101100
blackoutPeriod: 10s
102-
weightExpirationPeriod: 60s
103-
weightUpdatePeriod: 10s
104101
errorUtilizationPenalty: 1
105102
metricNamesForComputingUtilization:
106-
- "cpu_utilization"
103+
- cpu_utilization
104+
weightExpirationPeriod: 60s
105+
weightUpdatePeriod: 10s
106+
type: ClientSideWeightedRoundRobin
107107
targetRef:
108108
group: gateway.networking.k8s.io
109109
kind: HTTPRoute
@@ -184,7 +184,8 @@ backendTrafficPolicies:
184184
type: Accepted
185185
- lastTransitionTime: null
186186
message: 'This policy is being overridden by other backendTrafficPolicies
187-
for these routes: [default/httproute-1 default/httproute-2 default/httproute-3 default/httproute-4]'
187+
for these routes: [default/httproute-1 default/httproute-2 default/httproute-3
188+
default/httproute-4]'
188189
reason: Overridden
189190
status: "True"
190191
type: Overridden
@@ -704,11 +705,11 @@ xdsIR:
704705
loadBalancer:
705706
clientSideWeightedRoundRobin:
706707
blackoutPeriod: 10s
707-
weightExpirationPeriod: 60s
708-
weightUpdatePeriod: 10s
709708
errorUtilizationPenalty: 1
710709
metricNamesForComputingUtilization:
711-
- "cpu_utilization"
710+
- cpu_utilization
711+
weightExpirationPeriod: 1m0s
712+
weightUpdatePeriod: 10s
712713
- destination:
713714
metadata:
714715
kind: HTTPRoute

test/cel-validation/backendtrafficpolicy_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ func TestBackendTrafficPolicyTarget(t *testing.T) {
646646
}
647647
},
648648
wantErrors: []string{
649-
"spec.loadBalancer.clientSideWeightedRoundRobin.errorUtilizationPenalty: Invalid value: -1: must be greater than or equal to 0",
649+
"Invalid value: -1: spec.loadBalancer.clientSideWeightedRoundRobin.errorUtilizationPenalty in body should be greater than or equal to 0",
650650
},
651651
},
652652
{

0 commit comments

Comments
 (0)