Эх сурвалжийг харах

handbrake: allow setting GPU (#2429)

Stavros Kois 1 жил өмнө
parent
commit
637c2d5667

+ 1 - 1
library/ix-dev/community/handbrake/Chart.yaml

@@ -3,7 +3,7 @@ description: HandBrake is a tool for converting video from nearly any format to
 annotations:
   title: HandBrake
 type: application
-version: 1.0.2
+version: 1.0.3
 apiVersion: v2
 appVersion: 23.12.2
 kubeVersion: '>=1.16.0-0'

+ 9 - 0
library/ix-dev/community/handbrake/questions.yaml

@@ -646,3 +646,12 @@ questions:
                     - Exponent - eg. 134e6
                   default: "8Gi"
                   required: true
+
+  - variable: handbrakeGPU
+    group: Resources Configuration
+    label: GPU Configuration
+    schema:
+      type: dict
+      $ref:
+        - "definitions/gpuConfiguration"
+      attrs: []

+ 10 - 0
library/ix-dev/community/handbrake/templates/_handbrake.tpl

@@ -57,4 +57,14 @@ workload:
               enabled: true
               type: tcp
               port: {{ .Values.handbrakeNetwork.vncPort }}
+{{ with .Values.handbrakeGPU }}
+scaleGPU:
+  {{ range $key, $value := . }}
+  - gpu:
+      {{ $key }}: {{ $value }}
+    targetSelector:
+      handbrake:
+        - handbrake
+  {{ end }}
+{{ end }}
 {{- end -}}

+ 2 - 0
library/ix-dev/community/handbrake/values.yaml

@@ -41,3 +41,5 @@ handbrakeStorage:
     ixVolumeConfig:
       datasetName: watch
   additionalStorages: []
+
+handbrakeGPU: []