Skip to content

Commit

Permalink
feat: add KongServiceFacade RBACs, release kong/kong 2.33.0 (#963)
Browse files Browse the repository at this point in the history
  • Loading branch information
czeslavo authored Dec 6, 2023
1 parent 05ce54f commit e44817a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
5 changes: 4 additions & 1 deletion charts/kong/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## Unreleased
## 2.33.0

### Improvements

Expand All @@ -14,6 +14,9 @@
* Validate Gateway API's `Gateway` and `HTTPRoute` resources in the controller's
admission webhook only when KIC version is 3.0 or higher.
[#954](https://github.com/Kong/charts/pull/954)
* Added controller's RBAC rules for `KongServiceFacade` CRD (installed only when
KongServiceFacade feature gate turned on and KIC version >= 3.1.0).
[#963](https://github.com/Kong/charts/pull/963)

## 2.32.0

Expand Down
2 changes: 1 addition & 1 deletion charts/kong/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ maintainers:
name: kong
sources:
- https://github.com/Kong/charts/tree/main/charts/kong
version: 2.32.0
version: 2.33.0
appVersion: "3.5"
dependencies:
- name: postgresql
Expand Down
19 changes: 19 additions & 0 deletions charts/kong/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,25 @@ role sets used in the charts. Updating these requires separating out cluster
resource roles into their separate templates.
*/}}
{{- define "kong.kubernetesRBACRules" -}}
{{- if and (semverCompare ">= 3.1.0" (include "kong.effectiveVersion" .Values.ingressController.image))
(contains (print .Values.ingressController.env.feature_gates) "KongServiceFacade=true") }}
- apiGroups:
- incubator.konghq.com
resources:
- kongservicefacades
verbs:
- get
- list
- watch
- apiGroups:
- incubator.konghq.com
resources:
- kongservicefacades/status
verbs:
- get
- patch
- update
{{- end }}
{{- if (semverCompare ">= 3.0.0" (include "kong.effectiveVersion" .Values.ingressController.image)) }}
- apiGroups:
- configuration.konghq.com
Expand Down

0 comments on commit e44817a

Please sign in to comment.