Skip to content

Commit

Permalink
feat(kong): add services to admission webhook config for KIC >= 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
czeslavo committed Oct 31, 2023
1 parent 4736b0d commit 73ceb34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/kong/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions charts/kong/templates/admission-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73ceb34

Please sign in to comment.