apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
  name: node-maintenance-operator-validating-webhook-configuration
  namespace: testNamespace
  annotations:
    cert-manager.io/inject-ca-from: testNamespace/node-maintenance-operator-serving-cert
  labels:
    helm.sh/chart: node-maintenance-operator-0.0.0
    app.kubernetes.io/name: node-maintenance-operator
    app.kubernetes.io/instance: testRelease
    app.kubernetes.io/managed-by: Helm
webhooks:
- admissionReviewVersions:
  - v1
  clientConfig:
    service:
      name: node-maintenance-operator-webhook-service
      namespace: testNamespace
      path: /validate-nodemaintenance-medik8s-io-v1beta1-nodemaintenance
  failurePolicy: Fail
  name: vnodemaintenance.kb.io
  rules:
  - apiGroups:
    - nodemaintenance.medik8s.io
    apiVersions:
    - v1beta1
    operations:
    - CREATE
    - UPDATE
    resources:
    - nodemaintenances
  sideEffects: None
  timeoutSeconds: 15
