---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
  name: validating-webhook-configuration
webhooks:
- admissionReviewVersions:
  - v1
  clientConfig:
    service:
      name: webhook-service
      namespace: system
      path: /validate-v2-edp-epam-com-v1-stage
  failurePolicy: Fail
  name: stage.epam.com
  rules:
  - apiGroups:
    - v2.edp.epam.com
    apiVersions:
    - v1
    operations:
    - CREATE
    - UPDATE
    resources:
    - stages
  sideEffects: None
