blob: 277f4c3a8969b49df4aea5e94be1d7c9ecf673c6 [file] [log] [blame]
Badhrinath Pa3a3088a2020-07-28 18:37:16 -07001{{/*
2# Copyright 2018-present Open Networking Foundation
3# Copyright 2018 Intel Corporation
4
5# SPDX-License-Identifier: Apache-2.0
6# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
7*/}}
8
9---
10apiVersion: "k8s.cni.cncf.io/v1"
11kind: NetworkAttachmentDefinition
12metadata:
13 name: s1u-net
14{{- if $.Values.config.sriov.enabled }}
15 annotations:
16 k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_vfio_s1u_net
17{{- end }}
18spec:
19 config: '{
20 "type": {{ .Values.networks.cniPlugin | quote }},
21 "ipam": {
22 "type": {{ .Values.networks.ipam | quote }}
23 }
24 }'
25---
26apiVersion: "k8s.cni.cncf.io/v1"
27kind: NetworkAttachmentDefinition
28metadata:
29 name: sgi-net
30{{- if $.Values.config.sriov.enabled }}
31 annotations:
32 k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_vfio_sgi_net
33{{- end }}
34spec:
35 config: '{
36 "type": {{ .Values.networks.cniPlugin | quote }},
37 "ipam": {
38 "type": {{ .Values.networks.ipam | quote }}
39 }
40 }'