Woojoong Kim | 9bcff46 | 2019-09-19 12:59:01 -0700 | [diff] [blame] | 1 | {{/* |
| 2 | Copyright 2019-present Open Networking Foundation |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | */}} |
Woojoong Kim | e455aab | 2019-07-12 10:53:43 -0700 | [diff] [blame] | 16 | |
Woojoong Kim | 231956c | 2019-10-14 18:25:51 -0700 | [diff] [blame] | 17 | {{ if .Values.config.sriov.enabled }} |
Woojoong Kim | e455aab | 2019-07-12 10:53:43 -0700 | [diff] [blame] | 18 | --- |
| 19 | apiVersion: "k8s.cni.cncf.io/v1" |
| 20 | kind: NetworkAttachmentDefinition |
| 21 | metadata: |
Woojoong Kim | 9bcff46 | 2019-09-19 12:59:01 -0700 | [diff] [blame] | 22 | name: sgi-net-cdn |
Woojoong Kim | e455aab | 2019-07-12 10:53:43 -0700 | [diff] [blame] | 23 | annotations: |
| 24 | k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_netdevice |
Woojoong Kim | e455aab | 2019-07-12 10:53:43 -0700 | [diff] [blame] | 25 | spec: |
| 26 | config: '{ |
Woojoong Kim | 9bcff46 | 2019-09-19 12:59:01 -0700 | [diff] [blame] | 27 | "type": {{ .Values.networks.cniPlugin | quote }}, |
Woojoong Kim | e455aab | 2019-07-12 10:53:43 -0700 | [diff] [blame] | 28 | "ipam": { |
Woojoong Kim | 9bcff46 | 2019-09-19 12:59:01 -0700 | [diff] [blame] | 29 | "type": {{ .Values.networks.ipam | quote }} |
Woojoong Kim | e455aab | 2019-07-12 10:53:43 -0700 | [diff] [blame] | 30 | } |
| 31 | }' |
Woojoong Kim | 231956c | 2019-10-14 18:25:51 -0700 | [diff] [blame] | 32 | {{ end }} |