blob: 251539e2e92adf08231ba1e62fbe1766ad257119 [file] [log] [blame]
Jeremy Ronquillo223db002020-06-05 10:28:22 -07001{{/*
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002# Copyright 2018-present Open Networking Foundation
3# Copyright 2018 Intel Corporation
Jeremy Ronquillo223db002020-06-05 10:28:22 -07004
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07005# SPDX-License-Identifier: Apache-2.0
Jeremy Ronquillo6046ce32020-06-18 11:06:29 -07006# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
Jeremy Ronquillo223db002020-06-05 10:28:22 -07007*/}}
8
9---
10kind: ConfigMap
11apiVersion: v1
12metadata:
13 name: sriov-config
14data:
15 config.json: |
16 {
17 "resourceList": [
18 {
Woojoong Kim291eeba2020-08-21 15:47:36 -070019 "resourceName": "sriov_vfio_access_net",
Jeremy Ronquillo223db002020-06-05 10:28:22 -070020 "selectors": {
21 "pfNames": {{ toJson .Values.config.sriov.resourceList.vfio.s1uPfNames }},
22 "drivers": ["vfio-pci"]
23 }
24 },
25 {
Woojoong Kim291eeba2020-08-21 15:47:36 -070026 "resourceName": "sriov_vfio_core_net",
Jeremy Ronquillo223db002020-06-05 10:28:22 -070027 "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 }