blob: 29dc77ffc6edfdb9f00e6d9419290beab5a65b21 [file] [log] [blame]
{{/*
# Copyright 2020-present Open Networking Foundation
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
*/}}
---
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: access-net
{{- if $.Values.config.upf.sriov.enabled }}
annotations:
k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_vfio_net
{{- end }}
spec:
config: '{
"cniVersion": "0.3.1",
"type": {{ .Values.config.upf.cniPlugin | quote }},
"ipam": {
"type": {{ .Values.config.upf.ipam | quote }}
},
"capabilities": { "mac": true}
}'
---
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: core-net
{{- if $.Values.config.upf.sriov.enabled }}
annotations:
k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_vfio_net
{{- end }}
spec:
config: '{
"cniVersion": "0.3.1",
"type": {{ .Values.config.upf.cniPlugin | quote }},
"ipam": {
"type": {{ .Values.config.upf.ipam | quote }}
},
"capabilities": { "mac": true}
}'