Badhrinath Pa | 3a3088a | 2020-07-28 18:37:16 -0700 | [diff] [blame] | 1 | {{/* |
| 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 | --- |
| 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 | }' |