blob: e3e9bbd21bb813754c5f2e126f40202af919315f [file] [log] [blame]
Hyunsun Moon0e39f272020-09-10 15:38:04 -07001{{/*
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---
10kind: ConfigMap
11apiVersion: v1
12metadata:
13 name: sriov-config
14data:
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 }