blob: 53a57cbe1e8c7b1198f87b57cedfc27bcf165830 [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 "cniVersion": "0.3.1",
Hyunsun Moon33d85312020-08-20 00:55:31 -070019 "type": {{ .Values.config.upf.cniPlugin | quote }},
Jeremy Ronquillo223db002020-06-05 10:28:22 -070020 "ipam": {
Hyunsun Moon33d85312020-08-20 00:55:31 -070021 "type": {{ .Values.config.upf.ipam | quote }}
Hyunsun Moon1905a6e2020-11-09 05:59:55 +000022 },
23 "capabilities": { "mac": true}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070024 }'
25---
26apiVersion: "k8s.cni.cncf.io/v1"
27kind: NetworkAttachmentDefinition
28metadata:
Hyunsun Moon33d85312020-08-20 00:55:31 -070029 name: core-net
30{{- if $.Values.config.upf.sriov.enabled }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070031 annotations:
Hyunsun Moon33d85312020-08-20 00:55:31 -070032 k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_vfio_core_net
Jeremy Ronquillo223db002020-06-05 10:28:22 -070033{{- end }}
34spec:
35 config: '{
Hyunsun Moond457d182020-09-10 15:52:09 -070036 "cniVersion": "0.3.1",
Hyunsun Moon33d85312020-08-20 00:55:31 -070037 "type": {{ .Values.config.upf.cniPlugin | quote }},
Jeremy Ronquillo223db002020-06-05 10:28:22 -070038 "ipam": {
Hyunsun Moon33d85312020-08-20 00:55:31 -070039 "type": {{ .Values.config.upf.ipam | quote }}
Hyunsun Moon1905a6e2020-11-09 05:59:55 +000040 },
41 "capabilities": { "mac": true}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070042 }'