Hyunsun Moon | 6ff622e | 2020-03-11 17:14:48 -0700 | [diff] [blame] | 1 | {{/* |
| 2 | Copyright 2020-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 | */}} |
| 16 | |
| 17 | --- |
| 18 | apiVersion: "k8s.cni.cncf.io/v1" |
| 19 | kind: NetworkAttachmentDefinition |
| 20 | metadata: |
| 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 }} |
| 26 | spec: |
| 27 | config: '{ |
| 28 | "type": {{ .Values.networks.cniPlugin | quote }}, |
| 29 | "ipam": { |
| 30 | "type": {{ .Values.networks.ipam | quote }} |
| 31 | } |
| 32 | }' |
| 33 | --- |
| 34 | apiVersion: "k8s.cni.cncf.io/v1" |
| 35 | kind: NetworkAttachmentDefinition |
| 36 | metadata: |
| 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 }} |
| 42 | spec: |
| 43 | config: '{ |
| 44 | "type": {{ .Values.networks.cniPlugin | quote }}, |
| 45 | "ipam": { |
| 46 | "type": {{ .Values.networks.ipam | quote }} |
| 47 | } |
| 48 | }' |