Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 1 | {{/* |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame] | 2 | # Copyright 2018-present Open Networking Foundation |
| 3 | # Copyright 2018 Intel Corporation |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 4 | |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame] | 5 | # SPDX-License-Identifier: Apache-2.0 |
Jeremy Ronquillo | 6046ce3 | 2020-06-18 11:06:29 -0700 | [diff] [blame] | 6 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 7 | */}} |
| 8 | |
| 9 | --- |
| 10 | kind: ConfigMap |
| 11 | apiVersion: v1 |
| 12 | metadata: |
| 13 | name: sriov-config |
| 14 | data: |
| 15 | config.json: | |
| 16 | { |
| 17 | "resourceList": [ |
| 18 | { |
| 19 | "resourceName": "sriov_vfio_s1u_net", |
| 20 | "selectors": { |
| 21 | "pfNames": {{ toJson .Values.config.sriov.resourceList.vfio.s1uPfNames }}, |
| 22 | "drivers": ["vfio-pci"] |
| 23 | } |
| 24 | }, |
| 25 | { |
| 26 | "resourceName": "sriov_vfio_sgi_net", |
| 27 | "selectors": { |
| 28 | "pfNames": {{ toJson .Values.config.sriov.resourceList.vfio.sgiPfNames }}, |
| 29 | "drivers": ["vfio-pci"] |
| 30 | } |
| 31 | } |
| 32 | {{- if hasKey .Values.config.sriov.resourceList "netDevice" }} |
| 33 | , |
| 34 | { |
| 35 | "resourceName": "sriov_netdevice", |
| 36 | "selectors": { |
| 37 | "pfNames": {{ toJson .Values.config.sriov.resourceList.netDevice.pfNames }}, |
| 38 | "drivers": {{ toJson .Values.config.sriov.resourceList.netDevice.drivers }} |
| 39 | } |
| 40 | } |
| 41 | {{- end }} |
| 42 | ] |
| 43 | } |