blob: 3f0b1454792ae8413746b14958814c73226865d2 [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 {
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 }