mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
20 lines
741 B
YAML
20 lines
741 B
YAML
# The following patch enables conversion webhook for CRD
|
|
# CRD conversion requires k8s 1.13 or later.
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
name: qatdeviceplugins.deviceplugin.intel.com
|
|
spec:
|
|
# prunes object fields that are not specified in OpenAPI schemas below.
|
|
preserveUnknownFields: false
|
|
conversion:
|
|
strategy: Webhook
|
|
webhookClientConfig:
|
|
# this is "\n" used as a placeholder, otherwise it will be rejected by the apiserver for being blank,
|
|
# but we're going to set it later using the cert-manager (or potentially a patch if not using cert-manager)
|
|
caBundle: Cg==
|
|
service:
|
|
namespace: system
|
|
name: webhook-service
|
|
path: /convert
|