From 6c5078dd76f225f864da0b6e50bf99bcfed71971 Mon Sep 17 00:00:00 2001 From: Michael Burman Date: Tue, 19 Dec 2023 15:10:26 +0200 Subject: [PATCH 1/2] Add AdmissionWebhookConfiguration for the Helm chart --- .../admissionwebhookconfiguration.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 charts/k8ssandra-operator/templates/admissionwebhookconfiguration.yaml diff --git a/charts/k8ssandra-operator/templates/admissionwebhookconfiguration.yaml b/charts/k8ssandra-operator/templates/admissionwebhookconfiguration.yaml new file mode 100644 index 000000000..890a10416 --- /dev/null +++ b/charts/k8ssandra-operator/templates/admissionwebhookconfiguration.yaml @@ -0,0 +1,33 @@ +apiVersion: admissionregistration.k8s.io/v1 +kind: MutatingWebhookConfiguration +metadata: + annotations: + cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ include "k8ssandra-common.fullname" . }}-serving-cert + name: {{ include "k8ssandra-common.fullname" . }}-mutating-webhook-configuration +webhooks: +- admissionReviewVersions: + - v1 + clientConfig: + service: + name: {{ include "k8ssandra-common.fullname" . }}-webhook-service + namespace: {{ .Release.Namespace }} + path: /mutate-v1-pod-secrets-inject + failurePolicy: Fail + name: mpod.kb.io + objectSelector: + matchExpressions: + - key: control-plane + operator: NotIn + values: + - k8ssandra-operator + rules: + - apiGroups: + - "" + apiVersions: + - v1 + operations: + - CREATE + - UPDATE + resources: + - pods + sideEffects: None From aefb91c80c77676ccadfa72c8e2cd32c0445ab95 Mon Sep 17 00:00:00 2001 From: Michael Burman Date: Tue, 19 Dec 2023 15:12:54 +0200 Subject: [PATCH 2/2] Add changelog --- CHANGELOG/CHANGELOG-1.11.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG/CHANGELOG-1.11.md b/CHANGELOG/CHANGELOG-1.11.md index ba119b93a..b9d536f58 100644 --- a/CHANGELOG/CHANGELOG-1.11.md +++ b/CHANGELOG/CHANGELOG-1.11.md @@ -17,3 +17,4 @@ When cutting a new release, update the `unreleased` heading to the tag being gen * [ENHANCEMENT] [#1125](https://github.com/k8ssandra/k8ssandra-operator/issues/1125) Support Stargate with DSE and upgrade Stargate to 1.0.77 * [ENHANCEMENT] [#1122](https://github.com/k8ssandra/k8ssandra-operator/issues/1122) Expose backup size in MedusaBackup CRD +* [BUGFIX] [#1145](https://github.com/k8ssandra/k8ssandra-operator/issues/1145) Add missing MutatingWebhook configuration to the Helm chart