apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
  name: registry-credential-webhook.deeproute.ai
webhooks:
  - name: registry-credential-webhook.deeproute.ai
    clientConfig:
      service:
        name: registry-credential-webhook
        namespace: registry-credential-helper
        path: "/mutate"
    rules:
      - operations: [ "CREATE" ]
        apiGroups: ["apps", ""]
        apiVersions: ["v1"]
        resources: ["pods"]
        scope: "*"
    objectSelector:
      matchLabels:
        registry-credential-webhook.deeproute.ai/auto: "true"
    admissionReviewVersions: ["v1", "v1beta1"]
    sideEffects: None
    timeoutSeconds: 10