Skip to content

Commit

Permalink
gateway: add config/gateway-api kustomization
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjenkins committed Nov 8, 2024
1 parent 045c26d commit c2cd294
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
21 changes: 21 additions & 0 deletions config/gateway-api/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
namespace: pomerium
commonLabels:
app.kubernetes.io/name: pomerium
resources:
- ../default
patches:
- path: role_patch.yaml
target:
group: rbac.authorization.k8s.io
version: v1
kind: ClusterRole
name: pomerium-controller
- patch: |-
- op: add
path: /spec/template/spec/containers/0/args/-
value: '--experimental-gateway-api'
target:
group: apps
version: v1
kind: Deployment
name: pomerium
38 changes: 38 additions & 0 deletions config/gateway-api/role_patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
- op: add
path: /rules/-
value:
apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- list
- watch
- op: add
path: /rules/-
value:
apiGroups:
- gateway.networking.k8s.io
resources:
- gatewayclasses
- gateways
- httproutes
- referencegrants
verbs:
- get
- list
- watch
- op: add
path: /rules/-
value:
apiGroups:
- gateway.networking.k8s.io
resources:
- gatewayclasses/status
- gateways/status
- httproutes/status
verbs:
- get
- patch
- update

0 comments on commit c2cd294

Please sign in to comment.