apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
  name: kata-webhook
  labels:
    app: kata-webhook
    kind: mutator
webhooks:
  - name: webhook.kata.dev
    clientConfig:
      service:
        name: kata-webhook
        namespace: default
        path: "/mutate"
      caBundle: <CA_BUNDLE>
    rules:
      - operations: [ "CREATE" ]
        apiGroups: [""]
        apiVersions: ["v1"]
        resources: ["pods"]
    sideEffects: None 
    admissionReviewVersions: ["v1", "v1beta1"]
