blob: e75920ec202805994f194b546b17139d75ac78c5 [file] [log] [blame]
badhri854c028b32021-11-03 18:24:05 -05001{{/*
2# Copyright 2020-present Open Networking Foundation
3
Ajay Lotan Thakur03189d22022-02-10 14:06:03 -06004 # SPDX-License-Identifier: Apache-2.0
badhri854c028b32021-11-03 18:24:05 -05005*/}}
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---