handbrake: allow setting GPU (#2429)

This commit is contained in:
Stavros Kois
2024-05-03 12:12:50 +03:00
committed by GitHub
parent 182bc0eb88
commit 637c2d5667
4 changed files with 22 additions and 1 deletions

View File

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

View File

@@ -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: []

View File

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

View File

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