Skip to content

Commit

Permalink
Add helm admission hook (#1146)
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm authored Dec 20, 2023
1 parent 78a1cf7 commit f251394
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG/CHANGELOG-1.11.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ When cutting a new release, update the `unreleased` heading to the tag being gen
* [FEATURE] [#659](https://github.com/thelastpickle/cassandra-medusa/issues/659) Add support for DSE search
* [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
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f251394

Please sign in to comment.