Skip to content

Commit b4fd2d6

Browse files
committed
fix gen
Signed-off-by: zirain <zirain2009@gmail.com>
1 parent 3a7176d commit b4fd2d6

9 files changed

Lines changed: 322 additions & 8 deletions

internal/gatewayapi/testdata/envoyextensionpolicy-with-dynamicmodule.out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ envoyProxiesForGateways:
9393
local:
9494
path: /usr/lib/envoy/modules/my_auth.so
9595
type: Local
96+
- name: remote-auth-module
97+
source:
98+
remote:
99+
sha256: abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789
100+
url: https://modules.example.com/libremote_auth.so
101+
type: Remote
96102
- doNotClose: true
97103
loadGlobally: true
98104
name: ai-gateway-filter

internal/gatewayapi/testdata/envoyproxy-metric-grpc.out.yaml

Lines changed: 73 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
envoyProxiesForGateways:
2+
- apiVersion: gateway.envoyproxy.io/v1alpha1
3+
kind: EnvoyProxy
4+
metadata:
5+
name: override-disable
6+
namespace: envoy-gateway
7+
spec:
8+
logging: {}
9+
telemetry:
10+
metrics:
11+
enableGRPCStats: false
12+
status:
13+
ancestors:
14+
- ancestorRef:
15+
group: gateway.networking.k8s.io
16+
kind: Gateway
17+
name: gateway-1
18+
namespace: envoy-gateway
19+
conditions:
20+
- lastTransitionTime: null
21+
message: EnvoyProxy has been accepted.
22+
reason: Accepted
23+
status: "True"
24+
type: Accepted
25+
- apiVersion: gateway.envoyproxy.io/v1alpha1
26+
kind: EnvoyProxy
27+
metadata:
28+
name: enable
29+
namespace: envoy-gateway
30+
spec:
31+
logging: {}
32+
telemetry:
33+
metrics:
34+
enableGRPCStats: true
35+
status:
36+
ancestors:
37+
- ancestorRef:
38+
group: gateway.networking.k8s.io
39+
kind: Gateway
40+
name: gateway-2
41+
namespace: envoy-gateway
42+
conditions:
43+
- lastTransitionTime: null
44+
message: EnvoyProxy has been accepted.
45+
reason: Accepted
46+
status: "True"
47+
type: Accepted
148
gateways:
249
- apiVersion: gateway.networking.k8s.io/v1
350
kind: Gateway
@@ -134,7 +181,19 @@ infraIR:
134181
telemetry:
135182
metrics:
136183
enableGRPCStats: false
137-
status: {}
184+
status:
185+
ancestors:
186+
- ancestorRef:
187+
group: gateway.networking.k8s.io
188+
kind: Gateway
189+
name: gateway-1
190+
namespace: envoy-gateway
191+
conditions:
192+
- lastTransitionTime: null
193+
message: EnvoyProxy has been accepted.
194+
reason: Accepted
195+
status: "True"
196+
type: Accepted
138197
listeners:
139198
- name: envoy-gateway/gateway-1/http
140199
ports:
@@ -164,7 +223,19 @@ infraIR:
164223
telemetry:
165224
metrics:
166225
enableGRPCStats: true
167-
status: {}
226+
status:
227+
ancestors:
228+
- ancestorRef:
229+
group: gateway.networking.k8s.io
230+
kind: Gateway
231+
name: gateway-2
232+
namespace: envoy-gateway
233+
conditions:
234+
- lastTransitionTime: null
235+
message: EnvoyProxy has been accepted.
236+
reason: Accepted
237+
status: "True"
238+
type: Accepted
168239
listeners:
169240
- name: envoy-gateway/gateway-2/http
170241
ports:

internal/gatewayapi/testdata/securitypolicy-with-authorization-geoip-invalid-no-client-ip-detection.out.yaml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
envoyProxyForGatewayClass:
2+
apiVersion: gateway.envoyproxy.io/v1alpha1
3+
kind: EnvoyProxy
4+
metadata:
5+
name: geoip-proxy
6+
namespace: envoy-gateway
7+
spec:
8+
geoIP:
9+
provider:
10+
maxMind:
11+
anonymousIpDbSource:
12+
local:
13+
path: /db/GeoIP2-Anonymous-IP.mmdb
14+
cityDbSource:
15+
local:
16+
path: /db/GeoLite2-City.mmdb
17+
type: MaxMind
18+
logging: {}
19+
status:
20+
ancestors:
21+
- ancestorRef:
22+
group: gateway.networking.k8s.io
23+
kind: GatewayClass
24+
name: envoy-gateway-class
25+
conditions:
26+
- lastTransitionTime: null
27+
message: EnvoyProxy has been accepted.
28+
reason: Accepted
29+
status: "True"
30+
type: Accepted
131
gatewayClass:
232
apiVersion: gateway.networking.k8s.io/v1
333
kind: GatewayClass
@@ -118,7 +148,18 @@ infraIR:
118148
path: /db/GeoLite2-City.mmdb
119149
type: MaxMind
120150
logging: {}
121-
status: {}
151+
status:
152+
ancestors:
153+
- ancestorRef:
154+
group: gateway.networking.k8s.io
155+
kind: GatewayClass
156+
name: envoy-gateway-class
157+
conditions:
158+
- lastTransitionTime: null
159+
message: EnvoyProxy has been accepted.
160+
reason: Accepted
161+
status: "True"
162+
type: Accepted
122163
listeners:
123164
- name: envoy-gateway/gateway-1/http
124165
ports:

internal/gatewayapi/testdata/securitypolicy-with-authorization-geoip-invalid-no-provider.out.yaml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,26 @@ clientTrafficPolicies:
2727
status: "True"
2828
type: Accepted
2929
controllerName: gateway.envoyproxy.io/gatewayclass-controller
30+
envoyProxyForGatewayClass:
31+
apiVersion: gateway.envoyproxy.io/v1alpha1
32+
kind: EnvoyProxy
33+
metadata:
34+
name: geoip-proxy
35+
namespace: default
36+
spec:
37+
logging: {}
38+
status:
39+
ancestors:
40+
- ancestorRef:
41+
group: gateway.networking.k8s.io
42+
kind: GatewayClass
43+
name: envoy-gateway-class
44+
conditions:
45+
- lastTransitionTime: null
46+
message: EnvoyProxy has been accepted.
47+
reason: Accepted
48+
status: "True"
49+
type: Accepted
3050
gatewayClass:
3151
apiVersion: gateway.networking.k8s.io/v1
3252
kind: GatewayClass
@@ -135,7 +155,18 @@ infraIR:
135155
namespace: default
136156
spec:
137157
logging: {}
138-
status: {}
158+
status:
159+
ancestors:
160+
- ancestorRef:
161+
group: gateway.networking.k8s.io
162+
kind: GatewayClass
163+
name: envoy-gateway-class
164+
conditions:
165+
- lastTransitionTime: null
166+
message: EnvoyProxy has been accepted.
167+
reason: Accepted
168+
status: "True"
169+
type: Accepted
139170
listeners:
140171
- name: default/gateway-1/http
141172
ports:

internal/gatewayapi/testdata/securitypolicy-with-authorization-geoip-invalid-trusted-cidrs.out.yaml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,36 @@ clientTrafficPolicies:
2727
status: "True"
2828
type: Accepted
2929
controllerName: gateway.envoyproxy.io/gatewayclass-controller
30+
envoyProxyForGatewayClass:
31+
apiVersion: gateway.envoyproxy.io/v1alpha1
32+
kind: EnvoyProxy
33+
metadata:
34+
name: geoip-proxy
35+
namespace: default
36+
spec:
37+
geoIP:
38+
provider:
39+
maxMind:
40+
anonymousIpDbSource:
41+
local:
42+
path: /db/GeoIP2-Anonymous-IP.mmdb
43+
cityDbSource:
44+
local:
45+
path: /db/GeoLite2-City.mmdb
46+
type: MaxMind
47+
logging: {}
48+
status:
49+
ancestors:
50+
- ancestorRef:
51+
group: gateway.networking.k8s.io
52+
kind: GatewayClass
53+
name: envoy-gateway-class
54+
conditions:
55+
- lastTransitionTime: null
56+
message: EnvoyProxy has been accepted.
57+
reason: Accepted
58+
status: "True"
59+
type: Accepted
3060
gatewayClass:
3161
apiVersion: gateway.networking.k8s.io/v1
3262
kind: GatewayClass
@@ -145,7 +175,18 @@ infraIR:
145175
path: /db/GeoLite2-City.mmdb
146176
type: MaxMind
147177
logging: {}
148-
status: {}
178+
status:
179+
ancestors:
180+
- ancestorRef:
181+
group: gateway.networking.k8s.io
182+
kind: GatewayClass
183+
name: envoy-gateway-class
184+
conditions:
185+
- lastTransitionTime: null
186+
message: EnvoyProxy has been accepted.
187+
reason: Accepted
188+
status: "True"
189+
type: Accepted
149190
listeners:
150191
- name: default/gateway-1/http
151192
ports:

internal/gatewayapi/testdata/securitypolicy-with-authorization-geoip-mixed-valid-invalid-route-target.out.yaml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,36 @@ clientTrafficPolicies:
2929
status: "True"
3030
type: Accepted
3131
controllerName: gateway.envoyproxy.io/gatewayclass-controller
32+
envoyProxyForGatewayClass:
33+
apiVersion: gateway.envoyproxy.io/v1alpha1
34+
kind: EnvoyProxy
35+
metadata:
36+
name: geoip-proxy
37+
namespace: default
38+
spec:
39+
geoIP:
40+
provider:
41+
maxMind:
42+
anonymousIpDbSource:
43+
local:
44+
path: /db/GeoIP2-Anonymous-IP.mmdb
45+
cityDbSource:
46+
local:
47+
path: /db/GeoLite2-City.mmdb
48+
type: MaxMind
49+
logging: {}
50+
status:
51+
ancestors:
52+
- ancestorRef:
53+
group: gateway.networking.k8s.io
54+
kind: GatewayClass
55+
name: envoy-gateway-class
56+
conditions:
57+
- lastTransitionTime: null
58+
message: EnvoyProxy has been accepted.
59+
reason: Accepted
60+
status: "True"
61+
type: Accepted
3262
gatewayClass:
3363
apiVersion: gateway.networking.k8s.io/v1
3464
kind: GatewayClass
@@ -213,7 +243,18 @@ infraIR:
213243
path: /db/GeoLite2-City.mmdb
214244
type: MaxMind
215245
logging: {}
216-
status: {}
246+
status:
247+
ancestors:
248+
- ancestorRef:
249+
group: gateway.networking.k8s.io
250+
kind: GatewayClass
251+
name: envoy-gateway-class
252+
conditions:
253+
- lastTransitionTime: null
254+
message: EnvoyProxy has been accepted.
255+
reason: Accepted
256+
status: "True"
257+
type: Accepted
217258
listeners:
218259
- name: default/gateway-1/http-valid
219260
ports:

internal/gatewayapi/testdata/securitypolicy-with-authorization-geoip-mixed-valid-invalid.out.yaml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,36 @@ clientTrafficPolicies:
2929
status: "True"
3030
type: Accepted
3131
controllerName: gateway.envoyproxy.io/gatewayclass-controller
32+
envoyProxyForGatewayClass:
33+
apiVersion: gateway.envoyproxy.io/v1alpha1
34+
kind: EnvoyProxy
35+
metadata:
36+
name: geoip-proxy
37+
namespace: default
38+
spec:
39+
geoIP:
40+
provider:
41+
maxMind:
42+
anonymousIpDbSource:
43+
local:
44+
path: /db/GeoIP2-Anonymous-IP.mmdb
45+
cityDbSource:
46+
local:
47+
path: /db/GeoLite2-City.mmdb
48+
type: MaxMind
49+
logging: {}
50+
status:
51+
ancestors:
52+
- ancestorRef:
53+
group: gateway.networking.k8s.io
54+
kind: GatewayClass
55+
name: envoy-gateway-class
56+
conditions:
57+
- lastTransitionTime: null
58+
message: EnvoyProxy has been accepted.
59+
reason: Accepted
60+
status: "True"
61+
type: Accepted
3262
gatewayClass:
3363
apiVersion: gateway.networking.k8s.io/v1
3464
kind: GatewayClass
@@ -213,7 +243,18 @@ infraIR:
213243
path: /db/GeoLite2-City.mmdb
214244
type: MaxMind
215245
logging: {}
216-
status: {}
246+
status:
247+
ancestors:
248+
- ancestorRef:
249+
group: gateway.networking.k8s.io
250+
kind: GatewayClass
251+
name: envoy-gateway-class
252+
conditions:
253+
- lastTransitionTime: null
254+
message: EnvoyProxy has been accepted.
255+
reason: Accepted
256+
status: "True"
257+
type: Accepted
217258
listeners:
218259
- name: default/gateway-1/http-valid
219260
ports:

0 commit comments

Comments
 (0)