apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
  creationTimestamp: "2025-10-29T11:53:40Z"
  generation: 1
  labels:
    cdi.kubevirt.io: cdi-api
  name: cdi-api-pvc-mutate
  ownerReferences:
  - apiVersion: cdi.kubevirt.io/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: CDI
    name: cdi-kubevirt-hyperconverged
    uid: 1d55906a-5bc9-4c45-99c4-eb4c575b061f
  resourceVersion: "2145282"
  uid: 11ad1cbd-7b85-4298-bcac-1d0d8e8e13c7
webhooks:
- admissionReviewVersions:
  - v1
  clientConfig:
    service:
      name: cdi-api
      namespace: openshift-cnv
      path: /pvc-mutate
      port: 443
  failurePolicy: Fail
  matchPolicy: Exact
  name: pvc-mutate.cdi.kubevirt.io
  namespaceSelector: {}
  objectSelector:
    matchLabels:
      cdi.kubevirt.io/applyStorageProfile: "true"
  reinvocationPolicy: Never
  rules:
  - apiGroups:
    - ""
    apiVersions:
    - v1
    operations:
    - CREATE
    resources:
    - persistentvolumeclaims
    scope: '*'
  sideEffects: None
  timeoutSeconds: 10
