blob: f8c11cb2a0a7b8eb19b4a441b56975322058611a [file] [log] [blame]
Jeremy Ronquillo11851d32020-06-08 15:13:08 -07001{{/*
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002# Copyright 2019-present Open Networking Foundation
Jeremy Ronquillo11851d32020-06-08 15:13:08 -07003
Jeremy Ronquillo6046ce32020-06-18 11:06:29 -07004# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
Jeremy Ronquillo11851d32020-06-08 15:13:08 -07005*/}}
6
7{{ if .Values.config.sriov.enabled }}
8---
9apiVersion: "k8s.cni.cncf.io/v1"
10kind: NetworkAttachmentDefinition
11metadata:
12 name: sgi-net-cdn
13 annotations:
14 k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_netdevice
15spec:
16 config: '{
17 "type": {{ .Values.networks.cniPlugin | quote }},
18 "ipam": {
19 "type": {{ .Values.networks.ipam | quote }}
20 }
21 }'
22{{ end }}