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