Hyunsun Moon | 0e39f27 | 2020-09-10 15:38:04 -0700 | [diff] [blame] | 1 | {{/* |
| 2 | # Copyright 2018-present Open Networking Foundation |
| 3 | # Copyright 2018 Intel Corporation |
| 4 | |
| 5 | # SPDX-License-Identifier: Apache-2.0 |
| 6 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 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_access_net", |
| 20 | "selectors": { |
| 21 | "pfNames": {{ toJson .Values.config.sriov.resourceList.vfio.accessPfNames }}, |
| 22 | "drivers": ["vfio-pci"] |
| 23 | } |
| 24 | }, |
| 25 | { |
| 26 | "resourceName": "sriov_vfio_core_net", |
| 27 | "selectors": { |
| 28 | "pfNames": {{ toJson .Values.config.sriov.resourceList.vfio.corePfNames }}, |
| 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 | } |