---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
  name: validating-webhook-configuration
webhooks:
- admissionReviewVersions:
  - v1
  clientConfig:
    service:
      name: webhook-service
      namespace: system
      path: /validate-kubeflow-org-v2alpha1-clustertrainingruntime
  failurePolicy: Fail
  name: validator.clustertrainingruntime.kubeflow.org
  rules:
  - apiGroups:
    - kubeflow.org
    apiVersions:
    - v2alpha1
    operations:
    - CREATE
    - UPDATE
    resources:
    - clustertrainingruntimes
  sideEffects: None
- admissionReviewVersions:
  - v1
  clientConfig:
    service:
      name: webhook-service
      namespace: system
      path: /validate-kubeflow-org-v2alpha1-trainingruntime
  failurePolicy: Fail
  name: validator.trainingruntime.kubeflow.org
  rules:
  - apiGroups:
    - kubeflow.org
    apiVersions:
    - v2alpha1
    operations:
    - CREATE
    - UPDATE
    resources:
    - trainingruntimes
  sideEffects: None
- admissionReviewVersions:
  - v1
  clientConfig:
    service:
      name: webhook-service
      namespace: system
      path: /validate-kubeflow-org-v2alpha1-trainjob
  failurePolicy: Fail
  name: validator.trainjob.kubeflow.org
  rules:
  - apiGroups:
    - kubeflow.org
    apiVersions:
    - v2alpha1
    operations:
    - CREATE
    - UPDATE
    resources:
    - trainjobs
  sideEffects: None
