Skip to content

Commit

Permalink
feat: add KongServiceFacade RBACs, release charts
Browse files Browse the repository at this point in the history
  • Loading branch information
czeslavo committed Dec 6, 2023
1 parent 16f5a1d commit b462330
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 13 deletions.
5 changes: 5 additions & 0 deletions charts/ingress/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.10.0

- Bumped dependencies on `kong/kong` chart to `>=2.33.0`.
[#963](https:/Kong/charts/pull/963)

## 0.9.0

### Improvements
Expand Down
12 changes: 6 additions & 6 deletions charts/ingress/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dependencies:
- name: kong
repository: https://charts.konghq.com
version: 2.31.0
repository: file://../kong
version: 2.33.0
- name: kong
repository: https://charts.konghq.com
version: 2.31.0
digest: sha256:2897c91fb6e37c04f99a413dac85f991fed223591b8de327a04795e27b90a617
generated: "2023-11-06T14:36:11.845865+01:00"
repository: file://../kong
version: 2.33.0
digest: sha256:f9ea112f7fc570942344c11dfa69df41aad5bf85badf858b8bf69ded9eca379b
generated: "2023-12-06T10:55:40.833004+01:00"
10 changes: 5 additions & 5 deletions charts/ingress/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ maintainers:
name: ingress
sources:
- https:/Kong/charts/tree/main/charts/ingress
version: 0.9.0
version: 0.10.0
appVersion: "3.4"
dependencies:
- name: kong
version: ">=2.31.0"
repository: https://charts.konghq.com
version: ">=2.33.0"
repository: file://../kong
alias: controller
condition: controller.enabled
- name: kong
version: ">=2.31.0"
repository: https://charts.konghq.com
version: ">=2.33.0"
repository: file://../kong
alias: gateway
condition: gateway.enabled
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 @@ -11,6 +11,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:/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:/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:/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 @@ -1261,6 +1261,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))
(and (not empty .Values.ingressController.env.feature_gates) (contains .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 b462330

Please sign in to comment.