mirror of
https://github.com/truenas/charts.git
synced 2026-04-13 16:59:53 +08:00
Add common method to render GPU configuration
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
{{/*
|
||||
Retrieve GPU Configuration
|
||||
*/}}
|
||||
{{- define "common.containers.gpuConfiguration" -}}
|
||||
{{- $values := . -}}
|
||||
{{ if $values.gpuConfiguration }}
|
||||
resources:
|
||||
limits: {{- toYaml $values.gpuConfiguration | nindent 4 }}
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user