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 | e455aab | 2019-07-12 10:53:43 -0700 | [diff] [blame] | 17 | --- |
| 18 | apiVersion: "k8s.cni.cncf.io/v1" |
| 19 | kind: NetworkAttachmentDefinition |
| 20 | metadata: |
Woojoong Kim | 9bcff46 | 2019-09-19 12:59:01 -0700 | [diff] [blame] | 21 | name: sgi-net-cdn |
| 22 | {{- if .Values.config.sriov.enabled }} |
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 |
| 25 | {{- end }} |
| 26 | spec: |
| 27 | config: '{ |
Woojoong Kim | 9bcff46 | 2019-09-19 12:59:01 -0700 | [diff] [blame] | 28 | "type": {{ .Values.networks.cniPlugin | quote }}, |
Woojoong Kim | e455aab | 2019-07-12 10:53:43 -0700 | [diff] [blame] | 29 | "ipam": { |
Woojoong Kim | 9bcff46 | 2019-09-19 12:59:01 -0700 | [diff] [blame] | 30 | "type": {{ .Values.networks.ipam | quote }} |
Woojoong Kim | e455aab | 2019-07-12 10:53:43 -0700 | [diff] [blame] | 31 | } |
| 32 | }' |