blob: d92d5f8883d41614fd99da4e717b1291faf8b7a2 [file] [log] [blame]
Hyunsun Moonf1c80e02022-11-04 20:08:50 -07001# SPDX-FileCopyrightText: {C) 2022 Intel Corporation
2#
3# SPDX-License-Identifier: Apache-2.0
4
5apiVersion: "k8s.cni.cncf.io/v1"
6kind: NetworkAttachmentDefinition
7metadata:
8 name: router-net
9{{- if eq .Values.config.router.cni "sriov" }}
10 annotations:
11 k8s.v1.cni.cncf.io/resourceName: {{ .Values.config.router.resourceName }}
12{{- end }}
13spec:
14 config: '{
15 "cniVersion": "0.3.1",
16 "type": "{{ .Values.config.router.cni }}",
17 {{- if eq .Values.config.router.cni "macvlan" }}
18 "master": "{{ .Values.config.router.dataIface }}",
19 {{- end }}
20 "ipam": {
21 "type": "static"
22 }
23 }'