blob: 37f54e754f461ac2acd1221f942df9d9e523440c [file] [log] [blame]
Jeremy Ronquillo223db002020-06-05 10:28:22 -07001{{/*
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002# Copyright 2020-present Open Networking Foundation
Jeremy Ronquillo223db002020-06-05 10:28:22 -07003
Jeremy Ronquillo6046ce32020-06-18 11:06:29 -07004# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
Jeremy Ronquillo223db002020-06-05 10:28:22 -07005*/}}
6
7---
8apiVersion: "k8s.cni.cncf.io/v1"
9kind: NetworkAttachmentDefinition
10metadata:
Hyunsun Moon33d85312020-08-20 00:55:31 -070011 name: access-net
12{{- if $.Values.config.upf.sriov.enabled }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070013 annotations:
Hyunsun Moon33d85312020-08-20 00:55:31 -070014 k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_vfio_access_net
Jeremy Ronquillo223db002020-06-05 10:28:22 -070015{{- end }}
16spec:
17 config: '{
Hyunsun Moond457d182020-09-10 15:52:09 -070018{{- if semverCompare ">=1.16-0" .Capabilities.KubeVersion.GitVersion }}
19 "cniVersion": "0.3.1",
20{{- end }}
Hyunsun Moon33d85312020-08-20 00:55:31 -070021 "type": {{ .Values.config.upf.cniPlugin | quote }},
Jeremy Ronquillo223db002020-06-05 10:28:22 -070022 "ipam": {
Hyunsun Moon33d85312020-08-20 00:55:31 -070023 "type": {{ .Values.config.upf.ipam | quote }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070024 }
25 }'
26---
27apiVersion: "k8s.cni.cncf.io/v1"
28kind: NetworkAttachmentDefinition
29metadata:
Hyunsun Moon33d85312020-08-20 00:55:31 -070030 name: core-net
31{{- if $.Values.config.upf.sriov.enabled }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070032 annotations:
Hyunsun Moon33d85312020-08-20 00:55:31 -070033 k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_vfio_core_net
Jeremy Ronquillo223db002020-06-05 10:28:22 -070034{{- end }}
35spec:
36 config: '{
Hyunsun Moond457d182020-09-10 15:52:09 -070037{{- if semverCompare ">=1.16-0" .Capabilities.KubeVersion.GitVersion }}
38 "cniVersion": "0.3.1",
39{{- end }}
Hyunsun Moon33d85312020-08-20 00:55:31 -070040 "type": {{ .Values.config.upf.cniPlugin | quote }},
Jeremy Ronquillo223db002020-06-05 10:28:22 -070041 "ipam": {
Hyunsun Moon33d85312020-08-20 00:55:31 -070042 "type": {{ .Values.config.upf.ipam | quote }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070043 }
44 }'