diff --git a/charts/kong/CHANGELOG.md b/charts/kong/CHANGELOG.md index 2900754f2..a47ce6464 100644 --- a/charts/kong/CHANGELOG.md +++ b/charts/kong/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Unreleased +## 2.33.0 ### Improvements @@ -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 diff --git a/charts/kong/Chart.yaml b/charts/kong/Chart.yaml index 2839fbd47..db7c31596 100644 --- a/charts/kong/Chart.yaml +++ b/charts/kong/Chart.yaml @@ -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 diff --git a/charts/kong/templates/_helpers.tpl b/charts/kong/templates/_helpers.tpl index eaf0299ba..5ff57d67d 100644 --- a/charts/kong/templates/_helpers.tpl +++ b/charts/kong/templates/_helpers.tpl @@ -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