mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00

FPGA and SGX webhooks mutate container resources which are immutable. Therefore, stop processing pod updates and act on creation only. Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
26 lines
473 B
YAML
26 lines
473 B
YAML
---
|
|
apiVersion: admissionregistration.k8s.io/v1
|
|
kind: MutatingWebhookConfiguration
|
|
metadata:
|
|
name: mutating-webhook-configuration
|
|
webhooks:
|
|
- admissionReviewVersions:
|
|
- v1
|
|
clientConfig:
|
|
service:
|
|
name: webhook-service
|
|
namespace: system
|
|
path: /pods
|
|
failurePolicy: Ignore
|
|
name: fpga.mutator.webhooks.intel.com
|
|
rules:
|
|
- apiGroups:
|
|
- ""
|
|
apiVersions:
|
|
- v1
|
|
operations:
|
|
- CREATE
|
|
resources:
|
|
- pods
|
|
sideEffects: None
|