apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
  name: managedclustervalidators.admission.cluster.open-cluster-management.io
webhooks:
- admissionReviewVersions:
  - v1beta1
  clientConfig:
    service:
      name: kubernetes
      namespace: default
      path: /apis/admission.cluster.open-cluster-management.io/v1/managedclustervalidators
      port: 443
  failurePolicy: Fail
  matchPolicy: Equivalent
  name: managedclustervalidators.admission.cluster.open-cluster-management.io
  namespaceSelector: {}
  objectSelector: {}
  rules:
  - apiGroups:
    - cluster.open-cluster-management.io
    apiVersions:
    - '*'
    operations:
    - CREATE
    - UPDATE
    resources:
    - managedclusters
    scope: '*'
  sideEffects: None
  timeoutSeconds: 10
