blob: a448a202007794dd33b9e9d135038dfa7837f0ef [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/intel_sriov_vfio
{{- end }}
spec:
config: '{
"cniVersion": "0.3.1",
{{- if hasKey .Values.config.upf.access "vlan" }}
"vlan": {{ .Values.config.upf.access.vlan }},
{{- end }}
"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/intel_sriov_vfio
{{- end }}
spec:
config: '{
"cniVersion": "0.3.1",
{{- if hasKey .Values.config.upf.core "vlan" }}
"vlan": {{ .Values.config.upf.core.vlan }},
{{- end }}
"type": {{ .Values.config.upf.cniPlugin | quote }},
"ipam": {
"type": {{ .Values.config.upf.ipam | quote }}
},
"capabilities": { "mac": true}
}'