blob: e937d62206e1f25d33147c1310413337e4684a20 [file] [log] [blame]
Hyunsun Moon06f98552019-08-15 13:44:47 -06001{{/*
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*/}}
Wei-Yu Chen0f12b9c2019-04-18 11:12:59 -070017
Wei-Yu Chen0f12b9c2019-04-18 11:12:59 -070018---
19apiVersion: "k8s.cni.cncf.io/v1"
20kind: NetworkAttachmentDefinition
21metadata:
Hyunsun Moon159d1f72019-07-24 02:12:28 -060022 name: s1u-net
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060023{{- if $.Values.config.sriov.enabled }}
Wei-Yu Chen0f12b9c2019-04-18 11:12:59 -070024 annotations:
Hyunsun Moon7134ba62020-01-14 19:08:46 -080025 k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_vfio_s1u_net
Hyunsun Moona24d3f92019-06-19 03:04:58 -050026{{- end }}
Wei-Yu Chen0f12b9c2019-04-18 11:12:59 -070027spec:
28 config: '{
Hyunsun Moon06f98552019-08-15 13:44:47 -060029 "type": {{ .Values.networks.cniPlugin | quote }},
Wei-Yu Chen0f12b9c2019-04-18 11:12:59 -070030 "ipam": {
Hyunsun Moon7a921d12019-08-21 20:52:09 -050031 "type": {{ .Values.networks.ipam | quote }}
Wei-Yu Chen0f12b9c2019-04-18 11:12:59 -070032 }
Hyunsun Moona24d3f92019-06-19 03:04:58 -050033 }'
Hyunsun Moon159d1f72019-07-24 02:12:28 -060034---
35apiVersion: "k8s.cni.cncf.io/v1"
36kind: NetworkAttachmentDefinition
37metadata:
38 name: sgi-net
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060039{{- if $.Values.config.sriov.enabled }}
Hyunsun Moon159d1f72019-07-24 02:12:28 -060040 annotations:
Hyunsun Moon7134ba62020-01-14 19:08:46 -080041 k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_vfio_sgi_net
Wei-Yu Chen0f12b9c2019-04-18 11:12:59 -070042{{- end }}
Hyunsun Moon159d1f72019-07-24 02:12:28 -060043spec:
44 config: '{
Hyunsun Moon06f98552019-08-15 13:44:47 -060045 "type": {{ .Values.networks.cniPlugin | quote }},
Hyunsun Moon159d1f72019-07-24 02:12:28 -060046 "ipam": {
Hyunsun Moon7a921d12019-08-21 20:52:09 -050047 "type": {{ .Values.networks.ipam | quote }}
Hyunsun Moon159d1f72019-07-24 02:12:28 -060048 }
49 }'