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

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.
23 lines
471 B
YAML
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}$'
|