blob: e937d62206e1f25d33147c1310413337e4684a20 [file] [log] [blame]
Jeremy Ronquillo223db002020-06-05 10:28:22 -07001{{/*
2Copyright 2018-present Open Networking Foundation
3Copyright 2018 Intel Corporation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16*/}}
17
18---
19apiVersion: "k8s.cni.cncf.io/v1"
20kind: NetworkAttachmentDefinition
21metadata:
22 name: s1u-net
23{{- if $.Values.config.sriov.enabled }}
24 annotations:
25 k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_vfio_s1u_net
26{{- end }}
27spec:
28 config: '{
29 "type": {{ .Values.networks.cniPlugin | quote }},
30 "ipam": {
31 "type": {{ .Values.networks.ipam | quote }}
32 }
33 }'
34---
35apiVersion: "k8s.cni.cncf.io/v1"
36kind: NetworkAttachmentDefinition
37metadata:
38 name: sgi-net
39{{- if $.Values.config.sriov.enabled }}
40 annotations:
41 k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_vfio_sgi_net
42{{- end }}
43spec:
44 config: '{
45 "type": {{ .Values.networks.cniPlugin | quote }},
46 "ipam": {
47 "type": {{ .Values.networks.ipam | quote }}
48 }
49 }'