Hyunsun Moon | f1c80e0 | 2022-11-04 20:08:50 -0700 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: {C) 2022 Intel Corporation |
| 2 | # |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | |
| 5 | apiVersion: "k8s.cni.cncf.io/v1" |
| 6 | kind: NetworkAttachmentDefinition |
| 7 | metadata: |
| 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 }} |
| 13 | spec: |
| 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 | }' |