fix(immicc): allow GPU assignment for ML workload

Signed-off-by: Kjeld Schouten <info@kjeldschouten.nl>
This commit is contained in:
Kjeld Schouten
2025-03-08 21:17:22 +01:00
committed by GitHub
parent 8996d665bc
commit dfb004ea46

View File

@@ -14,7 +14,13 @@
{{/* Enable Machine Learning Service */}}
{{- $_ := set .Values.service.machinelearning "enabled" true -}}
{{/* Render Machine Learning Workload */}}
{{/* TODO Refactor, tmp fix to allow assigning GPU */}}
{{- $mlResources := .Values.workload.machinelearning.podSpec.containers.machinelearning.resources -}}
{{- $_ := set .Values.workload "machinelearning" (include "immich.machinelearning" . | fromYaml) -}}
{{/* TODO Refactor, tmp fix to allow assigning GPU */}}
{{- $_ := set .Values.workload.machinelearning.podSpec.containers.machinelearning "resources" $mlResources -}}
{{- else -}}
{{/* Disable Machine Learning Service */}}
{{- $_ := set .Values.service.machinelearning "enabled" false -}}