Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [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 | */}} |
| 17 | |
| 18 | --- |
| 19 | apiVersion: "k8s.cni.cncf.io/v1" |
| 20 | kind: NetworkAttachmentDefinition |
| 21 | metadata: |
| 22 | name: s1u-net |
| 23 | {{- if $.Values.config.sriov.enabled }} |
| 24 | annotations: |
| 25 | k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_vfio_s1u_net |
| 26 | {{- end }} |
| 27 | spec: |
| 28 | config: '{ |
| 29 | "type": {{ .Values.networks.cniPlugin | quote }}, |
| 30 | "ipam": { |
| 31 | "type": {{ .Values.networks.ipam | quote }} |
| 32 | } |
| 33 | }' |
| 34 | --- |
| 35 | apiVersion: "k8s.cni.cncf.io/v1" |
| 36 | kind: NetworkAttachmentDefinition |
| 37 | metadata: |
| 38 | name: sgi-net |
| 39 | {{- if $.Values.config.sriov.enabled }} |
| 40 | annotations: |
| 41 | k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_vfio_sgi_net |
| 42 | {{- end }} |
| 43 | spec: |
| 44 | config: '{ |
| 45 | "type": {{ .Values.networks.cniPlugin | quote }}, |
| 46 | "ipam": { |
| 47 | "type": {{ .Values.networks.ipam | quote }} |
| 48 | } |
| 49 | }' |