Skip to content

Commit f1200ae

Browse files
committed
gateway: add config/gateway-api kustomization
1 parent 38fe528 commit f1200ae

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

config/gateway-api/kustomization.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
namespace: pomerium
2+
commonLabels:
3+
app.kubernetes.io/name: pomerium
4+
resources:
5+
- ../default
6+
patches:
7+
- path: role_patch.yaml
8+
target:
9+
group: rbac.authorization.k8s.io
10+
version: v1
11+
kind: ClusterRole
12+
name: pomerium-controller
13+
- patch: |-
14+
- op: add
15+
path: /spec/template/spec/containers/0/args/-
16+
value: '--experimental-gateway-api'
17+
target:
18+
group: apps
19+
version: v1
20+
kind: Deployment
21+
name: pomerium

config/gateway-api/role_patch.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
- op: add
2+
path: /rules/-
3+
value:
4+
apiGroups:
5+
- ""
6+
resources:
7+
- namespaces
8+
verbs:
9+
- get
10+
- list
11+
- watch
12+
- op: add
13+
path: /rules/-
14+
value:
15+
apiGroups:
16+
- gateway.networking.k8s.io
17+
resources:
18+
- gatewayclasses
19+
- gateways
20+
- httproutes
21+
- referencegrants
22+
verbs:
23+
- get
24+
- list
25+
- watch
26+
- op: add
27+
path: /rules/-
28+
value:
29+
apiGroups:
30+
- gateway.networking.k8s.io
31+
resources:
32+
- gatewayclasses/status
33+
- gateways/status
34+
- httproutes/status
35+
verbs:
36+
- get
37+
- patch
38+
- update

0 commit comments

Comments
 (0)