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