Add common method to render GPU configuration

This commit is contained in:
Waqar Ahmed
2021-02-03 16:02:31 +05:00
parent cda05f3675
commit b91bc88153

View File

@@ -0,0 +1,10 @@
{{/*
Retrieve GPU Configuration
*/}}
{{- define "common.containers.gpuConfiguration" -}}
{{- $values := . -}}
{{ if $values.gpuConfiguration }}
resources:
limits: {{- toYaml $values.gpuConfiguration | nindent 4 }}
{{ end }}
{{- end -}}