mirror of
https://github.com/truenas/charts.git
synced 2026-11-30 15:38:00 +00:00
17 lines
400 B
Smarty
17 lines
400 B
Smarty
{{/*
|
|
Resource limitations
|
|
*/}}
|
|
{{ define "common.resources.limitation" }}
|
|
{{ if (or .Values.enableResourceLimits .Values.gpuConfiguration) }}
|
|
resources:
|
|
limits:
|
|
{{ if .Values.enableResourceLimits }}
|
|
cpu: {{ .Values.cpuLimit }}
|
|
memory: {{ .Values.memLimit }}
|
|
{{ end }}
|
|
{{ if .Values.gpuConfiguration }}
|
|
{{ toYaml .Values.gpuConfiguration | nindent 4 }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|