mirror of
https://github.com/truecharts/charts.git
synced 2026-07-26 15:01:24 -03:00
fix(immicc): allow GPU assignment for ML workload
Signed-off-by: Kjeld Schouten <info@kjeldschouten.nl>
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user