diff --git a/.github/workflows/main-pr.yaml b/.github/workflows/main-pr.yaml index ac14ef9c8..f89321e1a 100644 --- a/.github/workflows/main-pr.yaml +++ b/.github/workflows/main-pr.yaml @@ -59,7 +59,7 @@ jobs: python-version: "3.11" - name: Set up chart-testing - uses: helm/chart-testing-action@v2.4.0 + uses: helm/chart-testing-action@v2.6.0 - name: Run chart-testing (lint) run: ct lint --check-version-increment=false 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