Skip to content

Commit af17ad4

Browse files
committed
Fix sf functional test
1 parent 2eaffeb commit af17ad4

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

tests/suite/manifests/snippets-filter/valid-sf.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,49 +29,49 @@ spec:
2929
value: tcp_nodelay on;
3030
---
3131
apiVersion: gateway.networking.k8s.io/v1
32-
kind: HTTPRoute
32+
kind: GRPCRoute
3333
metadata:
34-
name: coffee
34+
name: grpc-route
3535
spec:
3636
parentRefs:
3737
- name: gateway
3838
sectionName: http
39-
hostnames:
40-
- "cafe.example.com"
4139
rules:
4240
- matches:
43-
- path:
44-
type: PathPrefix
45-
value: /coffee
41+
- method:
42+
service: helloworld.Greeter
43+
method: SayHello
4644
filters:
4745
- type: ExtensionRef
4846
extensionRef:
4947
group: gateway.nginx.org
5048
kind: SnippetsFilter
51-
name: all-contexts
49+
name: grpc-all-contexts
5250
backendRefs:
53-
- name: coffee
54-
port: 80
51+
- name: grpc-backend
52+
port: 8080
5553
---
5654
apiVersion: gateway.networking.k8s.io/v1
57-
kind: GRPCRoute
55+
kind: HTTPRoute
5856
metadata:
59-
name: grpc-route
57+
name: coffee
6058
spec:
6159
parentRefs:
6260
- name: gateway
6361
sectionName: http
62+
hostnames:
63+
- "cafe.example.com"
6464
rules:
6565
- matches:
66-
- method:
67-
service: helloworld.Greeter
68-
method: SayHello
66+
- path:
67+
type: PathPrefix
68+
value: /coffee
6969
filters:
7070
- type: ExtensionRef
7171
extensionRef:
7272
group: gateway.nginx.org
7373
kind: SnippetsFilter
74-
name: grpc-all-contexts
74+
name: all-contexts
7575
backendRefs:
76-
- name: grpc-backend
77-
port: 8080
76+
- name: coffee
77+
port: 80

0 commit comments

Comments
 (0)