From 637c2d5667b18371eeaf69c736aa7ceeb8f27f02 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Fri, 3 May 2024 12:12:50 +0300 Subject: [PATCH] handbrake: allow setting GPU (#2429) --- library/ix-dev/community/handbrake/Chart.yaml | 2 +- library/ix-dev/community/handbrake/questions.yaml | 9 +++++++++ .../community/handbrake/templates/_handbrake.tpl | 10 ++++++++++ library/ix-dev/community/handbrake/values.yaml | 2 ++ 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/library/ix-dev/community/handbrake/Chart.yaml b/library/ix-dev/community/handbrake/Chart.yaml index e2f09e800f..312bd6b65b 100644 --- a/library/ix-dev/community/handbrake/Chart.yaml +++ b/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' diff --git a/library/ix-dev/community/handbrake/questions.yaml b/library/ix-dev/community/handbrake/questions.yaml index 767c11c9e6..ad4d1922a8 100644 --- a/library/ix-dev/community/handbrake/questions.yaml +++ b/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: [] diff --git a/library/ix-dev/community/handbrake/templates/_handbrake.tpl b/library/ix-dev/community/handbrake/templates/_handbrake.tpl index 4e9561deeb..ecfab43cd4 100644 --- a/library/ix-dev/community/handbrake/templates/_handbrake.tpl +++ b/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 -}} diff --git a/library/ix-dev/community/handbrake/values.yaml b/library/ix-dev/community/handbrake/values.yaml index 5b80827dd7..ee2c913cc8 100644 --- a/library/ix-dev/community/handbrake/values.yaml +++ b/library/ix-dev/community/handbrake/values.yaml @@ -41,3 +41,5 @@ handbrakeStorage: ixVolumeConfig: datasetName: watch additionalStorages: [] + +handbrakeGPU: []