Skip to content

Commit 449daf2

Browse files
zhaohuabingrudrakhp
authored andcommitted
chore: add missing endpoints in the crl test (#7402)
fix test for #7199 Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
1 parent cbe2485 commit 449daf2

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed

internal/gatewayapi/testdata/clienttrafficpolicy-mtls-client-verification-expired-crl.in.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,24 @@ services:
220220
- name: http
221221
protocol: TCP
222222
port: 8080
223+
endpointSlices:
224+
- apiVersion: discovery.k8s.io/v1
225+
kind: EndpointSlice
226+
metadata:
227+
name: endpointslice-service-1
228+
namespace: envoy-gateway
229+
labels:
230+
kubernetes.io/service-name: service-1
231+
addressType: IPv4
232+
ports:
233+
- name: http
234+
protocol: TCP
235+
port: 8080
236+
endpoints:
237+
- addresses:
238+
- "10.244.0.11"
239+
conditions:
240+
ready: true
223241
configMaps:
224242
- apiVersion: v1
225243
kind: ConfigMap

internal/gatewayapi/testdata/clienttrafficpolicy-mtls-client-verification-expired-crl.out.yaml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,9 @@ tcpRoutes:
471471
status: "True"
472472
type: Accepted
473473
- lastTransitionTime: null
474-
message: no ready endpoints for the related Service envoy-gateway/service-1
475-
reason: EndpointsNotFound
476-
status: "False"
474+
message: Resolved all the Object references for the Route
475+
reason: ResolvedRefs
476+
status: "True"
477477
type: ResolvedRefs
478478
controllerName: gateway.envoyproxy.io/gatewayclass-controller
479479
parentRef:
@@ -700,6 +700,19 @@ xdsIR:
700700
name: tcproute-1
701701
namespace: envoy-gateway
702702
name: tcproute/envoy-gateway/tcproute-1/rule/-1
703+
settings:
704+
- addressType: IP
705+
endpoints:
706+
- host: 10.244.0.11
707+
port: 8080
708+
metadata:
709+
kind: Service
710+
name: service-1
711+
namespace: envoy-gateway
712+
sectionName: "8080"
713+
name: tcproute/envoy-gateway/tcproute-1/rule/-1/backend/0
714+
protocol: TCP
715+
weight: 1
703716
name: tcproute/envoy-gateway/tcproute-1
704717
tls:
705718
terminate:

0 commit comments

Comments
 (0)