blob: b749ea88bf63413a88b0db9dabf91fa4faa68fe3 [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 Moon33d85312020-08-20 00:55:31 -070018 "type": {{ .Values.config.upf.cniPlugin | quote }},
Jeremy Ronquillo223db002020-06-05 10:28:22 -070019 "ipam": {
Hyunsun Moon33d85312020-08-20 00:55:31 -070020 "type": {{ .Values.config.upf.ipam | quote }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070021 }
22 }'
23---
24apiVersion: "k8s.cni.cncf.io/v1"
25kind: NetworkAttachmentDefinition
26metadata:
Hyunsun Moon33d85312020-08-20 00:55:31 -070027 name: core-net
28{{- if $.Values.config.upf.sriov.enabled }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070029 annotations:
Hyunsun Moon33d85312020-08-20 00:55:31 -070030 k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_vfio_core_net
Jeremy Ronquillo223db002020-06-05 10:28:22 -070031{{- end }}
32spec:
33 config: '{
Hyunsun Moon33d85312020-08-20 00:55:31 -070034 "type": {{ .Values.config.upf.cniPlugin | quote }},
Jeremy Ronquillo223db002020-06-05 10:28:22 -070035 "ipam": {
Hyunsun Moon33d85312020-08-20 00:55:31 -070036 "type": {{ .Values.config.upf.ipam | quote }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070037 }
38 }'