badhri85 | 4c028b3 | 2021-11-03 18:24:05 -0500 | [diff] [blame] | 1 | {{/* |
| 2 | # Copyright 2020-present Open Networking Foundation |
| 3 | |
| 4 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 5 | */}} |
| 6 | |
| 7 | --- |
| 8 | apiVersion: "k8s.cni.cncf.io/v1" |
| 9 | kind: NetworkAttachmentDefinition |
| 10 | metadata: |
| 11 | name: enb-net |
| 12 | {{- if $.Values.config.gnbsim.sriov.enabled }} |
| 13 | annotations: |
| 14 | k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_vfio_access_net |
| 15 | {{- end }} |
| 16 | spec: |
| 17 | config: '{ |
| 18 | {{- if semverCompare ">=1.16-0" .Capabilities.KubeVersion.GitVersion }} |
| 19 | "cniVersion": "0.3.1", |
| 20 | {{- end }} |
| 21 | "type": {{ .Values.config.gnbsim.cniPlugin | quote }}, |
| 22 | "ipam": { |
| 23 | "type": {{ .Values.config.gnbsim.ipam | quote }} |
| 24 | } |
| 25 | }' |
| 26 | --- |