blob: e716f033f6fbc84b185521c5de27292a10fdc8eb [file] [log] [blame]
Badhrinath987e1d82020-11-20 13:23:58 -06001{{/*
2# Copyright 2020-present Open Networking Foundation
3
4 # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
5*/}}
6
7---
8apiVersion: "k8s.cni.cncf.io/v1"
9kind: NetworkAttachmentDefinition
10metadata:
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 }}
16spec:
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---