apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
  annotations:
    cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ include "kamaji.certificateName" . }}
  labels:
    {{- $data := . | mustMergeOverwrite (dict "instance" "validating-webhook-configuration") -}}
    {{- include "kamaji.labels" $data | nindent 4 }}
  name: kamaji-validating-webhook-configuration
webhooks:
{{ tpl (.Files.Get "controller-gen/validating-webhook.yaml") . }}
