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 | apiVersion: "k8s.cni.cncf.io/v1" |
| 11 | kind: NetworkAttachmentDefinition |
| 12 | metadata: |
| 13 | name: s1u-net |
| 14 | {{- if $.Values.config.sriov.enabled }} |
| 15 | annotations: |
| 16 | k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_vfio_s1u_net |
| 17 | {{- end }} |
| 18 | spec: |
| 19 | config: '{ |
| 20 | "type": {{ .Values.networks.cniPlugin | quote }}, |
| 21 | "ipam": { |
| 22 | "type": {{ .Values.networks.ipam | quote }} |
| 23 | } |
| 24 | }' |
| 25 | --- |
| 26 | apiVersion: "k8s.cni.cncf.io/v1" |
| 27 | kind: NetworkAttachmentDefinition |
| 28 | metadata: |
| 29 | name: sgi-net |
| 30 | {{- if $.Values.config.sriov.enabled }} |
| 31 | annotations: |
| 32 | k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_vfio_sgi_net |
| 33 | {{- end }} |
| 34 | spec: |
| 35 | config: '{ |
| 36 | "type": {{ .Values.networks.cniPlugin | quote }}, |
| 37 | "ipam": { |
| 38 | "type": {{ .Values.networks.ipam | quote }} |
| 39 | } |
| 40 | }' |