intel-device-plugins-for-ku.../deployments/fpga_admissionwebhook/region-crd.yaml
Dmitry Rozhkov 271bc0d29a webhook: add dynamically configured mappings
Currently we have hardcoded mapping from human readable names of
AFs and FPGA regions like arria10-nlb0 to the resource names
produced by the FPGA device plugin. This is not sustainable
long term solution.

Implement CRD based mappings so that a new mapping can be added or
removed dynamically by cluster admins with CRD resources.
2018-08-08 17:58:18 +03:00

23 lines
471 B
YAML

apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: fpgaregions.fpga.intel.com
spec:
group: fpga.intel.com
version: v1
scope: Namespaced
names:
plural: fpgaregions
singular: fpgaregion
kind: FpgaRegion
shortNames:
- fpga
validation:
openAPIV3Schema:
properties:
spec:
properties:
interfaceId:
type: string
pattern: '^[0-9a-f]{8,128}$'