github.com/k8snetworkplumbingwg/sriov-network-operator@v1.2.1-0.20240408194816-2d2e5a45d453/bindata/manifests/cni-config/sriov-cni-config.yaml (about) 1 apiVersion: "k8s.cni.cncf.io/v1" 2 kind: NetworkAttachmentDefinition 3 metadata: 4 name: {{.SriovNetworkName}} 5 namespace: {{.SriovNetworkNamespace}} 6 annotations: 7 k8s.v1.cni.cncf.io/resourceName: {{.SriovCniResourceName}} 8 spec: 9 config: '{ 10 "cniVersion":"0.3.1", 11 "name":"{{.SriovNetworkName}}", 12 {{- if .MetaPluginsConfigured -}} 13 "plugins": [ 14 { 15 {{- end -}} 16 "type":"{{.CniType}}", 17 {{- if eq .CniType "sriov" -}} 18 "vlan":{{.SriovCniVlan}}, 19 {{- if .SpoofChkConfigured -}} 20 "spoofchk":"{{.SriovCniSpoofChk}}", 21 {{- end -}} 22 {{- if .TrustConfigured -}} 23 "trust":"{{.SriovCniTrust}}", 24 {{- end -}} 25 {{- if .VlanQoSConfigured -}} 26 "vlanQoS":{{.SriovCniVlanQoS}}, 27 {{- end -}} 28 {{- if .VlanProtoConfigured -}} 29 "vlanProto":"{{.SriovCniVlanProto}}", 30 {{- end -}} 31 {{- if .MinTxRateConfigured -}} 32 "min_tx_rate":{{.SriovCniMinTxRate}}, 33 {{- end -}} 34 {{- if .MaxTxRateConfigured -}} 35 "max_tx_rate":{{.SriovCniMaxTxRate}}, 36 {{- end -}} 37 {{- end -}} 38 {{- if .CapabilitiesConfigured -}} 39 "capabilities":{{.SriovCniCapabilities}}, 40 {{- end -}} 41 {{- if .StateConfigured -}} 42 "link_state":"{{.SriovCniState}}", 43 {{- end -}} 44 {{- if .LogLevelConfigured -}} 45 "logLevel":"{{.LogLevel}}", 46 {{- end -}} 47 {{- if .LogFileConfigured -}} 48 "logFile":"{{.LogFile}}", 49 {{- end -}} 50 {{.SriovCniIpam}} 51 } 52 {{- if .MetaPluginsConfigured -}} 53 , 54 {{.MetaPlugins}} 55 ] 56 } 57 {{- end -}} 58 '