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