apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
  annotations:
    cert-manager.io/inject-ca-from: dex/dex-operator-cert
  labels:
    app.kubernetes.io/managed-by: karavel
    app.kubernetes.io/part-of: dex
    app.kubernetes.io/version: 2.30.0
    karavel.io/component-name: dex
    karavel.io/component-version: 0.1.0-SNAPSHOT
  name: dex-operator-validating-webhook-configuration
webhooks:
- admissionReviewVersions:
  - v1beta1
  clientConfig:
    service:
      name: dex-operator
      namespace: dex
      path: /validate-dex-karavel-io-v1alpha1-dex
  failurePolicy: Fail
  name: vdex.kb.io
  rules:
  - apiGroups:
    - dex.karavel.io
    apiVersions:
    - v1alpha1
    operations:
    - CREATE
    - UPDATE
    resources:
    - dexes
  sideEffects: None
- admissionReviewVersions:
  - v1beta1
  clientConfig:
    service:
      name: dex-operator
      namespace: dex
      path: /validate-dex-karavel-io-v1alpha1-dexclient
  failurePolicy: Fail
  name: vdexclient.kb.io
  rules:
  - apiGroups:
    - dex.karavel.io
    apiVersions:
    - v1alpha1
    operations:
    - CREATE
    - UPDATE
    resources:
    - dexclients
  sideEffects: None
