#/*
# * Copyright (C) 2021 Intel Corporation
# * SPDX-License-Identifier: BSD-3-Clause
# */

apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
  name: node-tainting-webhook
webhooks:
  - name: node-tainting-webhook.isecl.svc.cluster.local
    admissionReviewVersions:
      - "v1beta1"
    sideEffects: "None"
    timeoutSeconds: 30
    clientConfig:
      service:
        name: node-tainting-webhook
        namespace: isecl
        path: "/mutate"
      caBundle: ""
    rules:
      - operations: [ "CREATE" ]
        apiGroups: [""]
        apiVersions: ["v1"]
        resources: ["nodes"]
