blob: 43c1aade789cb9447585d80d060f9bf0bea89fe6 [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
Scott Baker4cad5ee2022-06-09 14:17:35 -07004# SPDX-License-Identifier: Apache-2.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 }}