50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
apiVersion: admissionregistration.k8s.io/v1
|
|
kind: MutatingWebhookConfiguration
|
|
metadata:
|
|
annotations:
|
|
cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ include "kamaji.certificateName" . }}
|
|
labels:
|
|
{{- $data := . | mustMergeOverwrite (dict "instance" "mutating-webhook-configuration") -}}
|
|
{{- include "kamaji.labels" $data | nindent 4 }}
|
|
name: kamaji-mutating-webhook-configuration
|
|
webhooks:
|
|
- admissionReviewVersions:
|
|
- v1
|
|
clientConfig:
|
|
service:
|
|
name: {{ include "kamaji.webhookServiceName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
path: /mutate-kamaji-clastix-io-v1alpha1-datastore
|
|
failurePolicy: Fail
|
|
name: mdatastore.kb.io
|
|
rules:
|
|
- apiGroups:
|
|
- kamaji.clastix.io
|
|
apiVersions:
|
|
- v1alpha1
|
|
operations:
|
|
- CREATE
|
|
- UPDATE
|
|
resources:
|
|
- datastores
|
|
sideEffects: None
|
|
- admissionReviewVersions:
|
|
- v1
|
|
clientConfig:
|
|
service:
|
|
name: {{ include "kamaji.webhookServiceName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
path: /mutate-kamaji-clastix-io-v1alpha1-tenantcontrolplane
|
|
failurePolicy: Fail
|
|
name: mtenantcontrolplane.kb.io
|
|
rules:
|
|
- apiGroups:
|
|
- kamaji.clastix.io
|
|
apiVersions:
|
|
- v1alpha1
|
|
operations:
|
|
- CREATE
|
|
- UPDATE
|
|
resources:
|
|
- tenantcontrolplanes
|
|
sideEffects: None |