浏览代码

Merge pull request #46 from truenas/plex-gpu

Automatically add nvidia env variable when nvidia gpu is configured for plex
Waqar Ahmed 4 年之前
父节点
当前提交
d659e9a850

+ 0 - 0
test/plex/1.2.1/.helmignore → test/plex/1.3.0/.helmignore


+ 0 - 0
test/plex/1.2.1/Chart.lock → test/plex/1.3.0/Chart.lock


+ 1 - 1
test/plex/1.2.1/Chart.yaml → test/plex/1.3.0/Chart.yaml

@@ -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/

+ 0 - 0
test/plex/1.2.1/README.md → test/plex/1.3.0/README.md


+ 0 - 0
test/plex/1.2.1/app-readme.md → test/plex/1.3.0/app-readme.md


+ 0 - 0
test/plex/1.2.1/charts/common-2101.0.0.tgz → test/plex/1.3.0/charts/common-2101.0.0.tgz


+ 0 - 0
test/plex/1.2.1/default_values.yaml → test/plex/1.3.0/default_values.yaml


+ 0 - 0
test/plex/1.2.1/ix_values.yaml → test/plex/1.3.0/ix_values.yaml


+ 0 - 0
test/plex/1.2.1/migrations/migrate_from_1.0.0 → test/plex/1.3.0/migrations/migrate_from_1.0.0


+ 0 - 0
test/plex/1.2.1/questions.yaml → test/plex/1.3.0/questions.yaml


+ 0 - 0
test/plex/1.2.1/templates/NOTES.txt → test/plex/1.3.0/templates/NOTES.txt


+ 3 - 0
test/plex/1.2.1/templates/deployment.yaml → test/plex/1.3.0/templates/deployment.yaml

@@ -50,6 +50,9 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
                 fieldRef:
                   fieldPath: status.podIP
             {{ $envList := (default list .Values.environmentVariables) }}
+            {{ 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) }}
             {{ $envList = mustAppend $envList (dict "name" "PLEX_CLAIM" "value" .Values.claimToken) }}
             {{ $envList = mustAppend $envList (dict "name" "PMS_INTERNAL_ADDRESS" "value" (printf "http://%s:32400" (include "common.names.fullname" .))) }}

+ 0 - 0
test/plex/1.2.1/templates/probe_config.yaml → test/plex/1.3.0/templates/probe_config.yaml


+ 0 - 0
test/plex/1.2.1/templates/service-tcp.yaml → test/plex/1.3.0/templates/service-tcp.yaml


+ 0 - 0
test/plex/1.2.1/templates/service-udp.yaml → test/plex/1.3.0/templates/service-udp.yaml


+ 0 - 0
test/plex/1.2.1/test_values.yaml → test/plex/1.3.0/test_values.yaml


+ 0 - 0
test/plex/1.2.1/values.yaml → test/plex/1.3.0/values.yaml