Skip to content

Commit cab6837

Browse files
authored
e2e: add test for watched namespace (#8786)
* add e2e test for watched namespace Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> * explicitly includes the controller namespace Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> --------- Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
1 parent 63c5b5b commit cab6837

4 files changed

Lines changed: 61 additions & 0 deletions

File tree

.github/workflows/build_and_test.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ jobs:
181181
ipFamily: ipv4
182182
profile: xds-name-scheme-v2
183183
gwapiChannel: experimental
184+
- version: v1.35.0
185+
ipFamily: ipv4
186+
profile: watch-namespaces
187+
gwapiChannel: experimental
184188
steps:
185189
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
186190
- uses: ./tools/github-actions/setup-deps
@@ -237,6 +241,9 @@ jobs:
237241
- version: v1.35.0
238242
ipFamily: ipv4
239243
profile: xds-name-scheme-v2
244+
- version: v1.35.0
245+
ipFamily: ipv4
246+
profile: watch-namespaces
240247

241248
steps:
242249
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/experimental_conformance.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
# only run dual test on latest version to save time
4646
ipFamily: dual
4747
profile: gateway-namespace-mode
48+
- version: v1.35.0
49+
ipFamily: ipv4
50+
profile: watch-namespaces
4851
steps:
4952
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5053
- uses: ./tools/github-actions/setup-deps
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: envoy-gateway-config
5+
namespace: envoy-gateway-system
6+
data:
7+
envoy-gateway.yaml: |
8+
apiVersion: gateway.envoyproxy.io/v1alpha1
9+
kind: EnvoyGateway
10+
provider:
11+
type: Kubernetes
12+
kubernetes:
13+
watch:
14+
type: Namespaces
15+
namespaces:
16+
- envoy-gateway-system
17+
- gateway-conformance-infra
18+
- gateway-preserve-case-backend
19+
- gateway-upgrade-infra
20+
- listenerset-tls-termination-secret
21+
- monitoring
22+
- multireferencegrants-ns
23+
gateway:
24+
controllerName: gateway.envoyproxy.io/gatewayclass-controller
25+
extensionApis:
26+
enableEnvoyPatchPolicy: true
27+
enableBackend: true
28+
gatewayAPI:
29+
enabled: [XListenerSet]
30+
rateLimit:
31+
backend:
32+
type: Redis
33+
redis:
34+
url: redis.redis-system.svc.cluster.local:6379
35+
envoyProxy:
36+
provider:
37+
kubernetes:
38+
envoyDeployment:
39+
container:
40+
image: envoyproxy/envoy:invalid-tag
41+
telemetry:
42+
traces:
43+
sink:
44+
type: OpenTelemetry
45+
openTelemetry:
46+
host: otel-collector.monitoring.svc.cluster.local
47+
port: 4317
48+
protocol: grpc
49+
samplingRate:
50+
numerator: 100
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# the watch-namespaces configuration is applied via test/config/envoy-gateaway-config/watch-namespaces.yaml

0 commit comments

Comments
 (0)