Skip to content

Commit

Permalink
fix(kong): add RBAC rules for listing namespaces when gateway API is …
Browse files Browse the repository at this point in the history
…detected (#974)

* fix(kong): add RBAC rules for listing namespaces when gateway API is detected

* kong: add watch permissions to ClusterRole
  • Loading branch information
pmalek authored Dec 13, 2023
1 parent 32d7a68 commit e2f4d3a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
8 changes: 8 additions & 0 deletions charts/kong/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## Unreleased

### Fixed

* Add RBAC rules for get, list and watch operations on namespaces so that Gateway API
controllers in KIC can access using a cached controller-runtime client.
[#974](https://github.com/Kong/charts/pull/974)

## 2.33.2

* Fix a template bug related to the `affinity` field for migrations Pods.
Expand Down
9 changes: 8 additions & 1 deletion charts/kong/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,6 @@ Kubernetes namespace-scoped resources it uses to build Kong configuration.
Collectively, these are built from:
kubectl kustomize github.com/kong/kubernetes-ingress-controller/config/rbac?ref=main
kubectl kustomize github.com/kong/kubernetes-ingress-controller/config/rbac/knative?ref=main
kubectl kustomize github.com/kong/kubernetes-ingress-controller/config/rbac/gateway?ref=main
However, there is no way to generate the split between cluster and namespaced
Expand Down Expand Up @@ -1675,6 +1674,14 @@ Kubernetes Cluster-scoped resources it uses to build Kong configuration.
verbs:
- get
- update
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- list
- watch
{{- end }}
- apiGroups:
- networking.k8s.io
Expand Down

0 comments on commit e2f4d3a

Please sign in to comment.