Commit 8093e932 authored by Waqar Ahmed's avatar Waqar Ahmed

Check if nvidia gpu is actually more then 1

parent 9259ab86
......@@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 1.21.3.4046-3c1c83ba4
description: Plex Media Server
name: plex
version: 1.2.1
version: 1.3.0
keywords:
- plex
home: https://plex.tv/
......
......@@ -50,7 +50,7 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
fieldRef:
fieldPath: status.podIP
{{ $envList := (default list .Values.environmentVariables) }}
{{ if .Values.gpuConfiguration }}
{{ if and .Values.gpuConfiguration (hasKey .Values.gpuConfiguration "nvidia.com/gpu") (gt (get .Values.gpuConfiguration "nvidia.com/gpu" | toDecimal) 0) }}
{{ $envList = mustAppend $envList (dict "name" "NVIDIA_DRIVER_CAPABILITIES" "value" "all") }}
{{ end }}
{{ $envList = mustAppend $envList (dict "name" "TZ" "value" .Values.timezone) }}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment