Jeremy Ronquillo | 11851d3 | 2020-06-08 15:13:08 -0700 | [diff] [blame] | 1 | {{/* |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame] | 2 | # Copyright 2019-present Open Networking Foundation |
Jeremy Ronquillo | 11851d3 | 2020-06-08 15:13:08 -0700 | [diff] [blame] | 3 | |
Jeremy Ronquillo | 6046ce3 | 2020-06-18 11:06:29 -0700 | [diff] [blame] | 4 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
Jeremy Ronquillo | 11851d3 | 2020-06-08 15:13:08 -0700 | [diff] [blame] | 5 | */}} |
| 6 | |
| 7 | {{ if .Values.config.sriov.enabled }} |
| 8 | --- |
| 9 | apiVersion: "k8s.cni.cncf.io/v1" |
| 10 | kind: NetworkAttachmentDefinition |
| 11 | metadata: |
| 12 | name: sgi-net-cdn |
| 13 | annotations: |
| 14 | k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_netdevice |
| 15 | spec: |
| 16 | config: '{ |
| 17 | "type": {{ .Values.networks.cniPlugin | quote }}, |
| 18 | "ipam": { |
| 19 | "type": {{ .Values.networks.ipam | quote }} |
| 20 | } |
| 21 | }' |
| 22 | {{ end }} |