Skip to content

Commit

Permalink
chore: change pattern of autogenerated `ValidatingWebhookConfiguratio…
Browse files Browse the repository at this point in the history
…n` name (#1211)
  • Loading branch information
programmer04 authored Jan 7, 2025
1 parent a59fcf1 commit 7646b3a
Show file tree
Hide file tree
Showing 19 changed files with 27 additions and 35 deletions.
9 changes: 9 additions & 0 deletions charts/kong/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## Unreleased

### Changes

* Autogenerated name of `ValidatingWebhookConfiguration` changed from
`<FULLNAME>-validations` to `<FULLNAME>-<CHART-INSTALLATION-NAMESPACE>-validations`
to avoid collisions in case of multiple installations.
[#1211](https://github.com/Kong/charts/pull/1211)

## 2.46.0

### Changes
Expand Down
2 changes: 1 addition & 1 deletion charts/kong/ci/.chartsnap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dynamicFields:
- /data/tls.key
- apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
name: chartsnap-kong-validations
name: chartsnap-kong-default-validations
jsonPath:
- /webhooks/0/clientConfig/caBundle
- /webhooks/1/clientConfig/caBundle
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions charts/kong/ci/__snapshots__/custom-labels-values.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions charts/kong/ci/__snapshots__/default-values.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions charts/kong/ci/__snapshots__/kong-ingress-1-values.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions charts/kong/ci/__snapshots__/kong-ingress-2-values.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions charts/kong/ci/__snapshots__/kong-ingress-3-values.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions charts/kong/ci/__snapshots__/kong-ingress-4-values.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions charts/kong/ci/__snapshots__/proxy-appprotocol-values.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions charts/kong/ci/__snapshots__/service-account.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions charts/kong/ci/__snapshots__/test1-values.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions charts/kong/ci/__snapshots__/test2-values.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions charts/kong/ci/__snapshots__/test5-values.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions charts/kong/templates/admission-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ apiVersion: admissionregistration.k8s.io/v1
apiVersion: admissionregistration.k8s.io/v1beta1
{{- end }}
metadata:
name: {{ template "kong.fullname" . }}-validations
namespace: {{ template "kong.namespace" . }}
name: {{ template "kong.fullname" . }}-{{ template "kong.namespace" . }}-validations
labels:
{{- include "kong.metaLabels" . | nindent 4 }}
{{- if .Values.ingressController.admissionWebhook.annotations }}
Expand Down

0 comments on commit 7646b3a

Please sign in to comment.