diff --git a/charts/kong/CHANGELOG.md b/charts/kong/CHANGELOG.md index 981532905..3705f343a 100644 --- a/charts/kong/CHANGELOG.md +++ b/charts/kong/CHANGELOG.md @@ -6,6 +6,8 @@ * Added controller's RBAC rules for `KongUpstreamPolicy` CRD. [#917](https://github.com/Kong/charts/pull/917) +* Added services resource to admission webhook config for KIC >= 3.0.0. + [#919](https://github.com/Kong/charts/pull/919) ## 2.30.0 diff --git a/charts/kong/templates/admission-webhook.yaml b/charts/kong/templates/admission-webhook.yaml index bb7cb3f42..8e223f406 100644 --- a/charts/kong/templates/admission-webhook.yaml +++ b/charts/kong/templates/admission-webhook.yaml @@ -86,6 +86,9 @@ webhooks: - UPDATE resources: - secrets +{{- if (semverCompare ">= 3.0.0" (include "kong.effectiveVersion" .Values.ingressController.image)) }} + - services +{{- end }} {{- if (semverCompare ">= 2.12.0" (include "kong.effectiveVersion" .Values.ingressController.image)) }} - apiGroups: - networking.k8s.io