fix(unmanic): force disable nvidia, if no gpu is assigned (#1817)
* fix(unmanic): force disable nvidia, if no gpu is assigned * typo * mount remote lib outside of emptyDir
This commit is contained in:
parent
fec5e389a6
commit
afda0ad76c
|
@ -18,7 +18,7 @@ name: unmanic
|
|||
sources:
|
||||
- https://github.com/Unmanic/unmanic
|
||||
- https://hub.docker.com/r/josh5/unmanic
|
||||
version: 0.0.3
|
||||
version: 0.0.4
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- media
|
||||
|
|
|
@ -262,6 +262,49 @@ questions:
|
|||
- value: "Memory"
|
||||
description: "Memory"
|
||||
# Include{persistenceAdvanced}
|
||||
- variable: remote
|
||||
label: "App Remote Library Storage"
|
||||
description: "Stores files from remote library until they are finished"
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: type
|
||||
label: "Type of Storage"
|
||||
description: "Sets the persistence type, Anything other than PVC could break rollback!"
|
||||
schema:
|
||||
type: string
|
||||
default: "simplePVC"
|
||||
enum:
|
||||
- value: "simplePVC"
|
||||
description: "PVC (simple)"
|
||||
- value: "simpleHP"
|
||||
description: "HostPath (simple)"
|
||||
- value: "emptyDir"
|
||||
description: "emptyDir"
|
||||
- value: "pvc"
|
||||
description: "pvc"
|
||||
- value: "hostPath"
|
||||
description: "hostPath"
|
||||
# Include{persistenceBasic}
|
||||
- variable: hostPath
|
||||
label: "hostPath"
|
||||
description: "Path inside the container the storage is mounted"
|
||||
schema:
|
||||
show_if: [["type", "=", "hostPath"]]
|
||||
type: hostpath
|
||||
- variable: medium
|
||||
label: "EmptyDir Medium"
|
||||
schema:
|
||||
show_if: [["type", "=", "emptyDir"]]
|
||||
type: string
|
||||
default: ""
|
||||
enum:
|
||||
- value: ""
|
||||
description: "Default"
|
||||
- value: "Memory"
|
||||
description: "Memory"
|
||||
# Include{persistenceAdvanced}
|
||||
|
||||
# Include{persistenceList}
|
||||
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
{{/* Define the configmap */}}
|
||||
{{- define "unmanic.configmap" -}}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: unmanic-config
|
||||
data:
|
||||
{{- if .Values.scaleGPU }}
|
||||
NVIDIA_VISIBLE_DEVICES: "all"
|
||||
{{- else }}
|
||||
NVIDIA_VISIBLE_DEVICES: "void"
|
||||
{{- end }}
|
||||
{{- end -}}
|
|
@ -1 +1,8 @@
|
|||
{{ include "common.all" . }}
|
||||
{{/* Make sure all variables are set properly */}}
|
||||
{{- include "common.setup" . }}
|
||||
|
||||
{{/* Render configmap for unmanic */}}
|
||||
{{- include "unmanic.configmap" . }}
|
||||
|
||||
{{/* Render the templates */}}
|
||||
{{ include "common.postSetup" . }}
|
||||
|
|
|
@ -15,6 +15,10 @@ env:
|
|||
TZ: UTC
|
||||
PUID: 568
|
||||
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: unmanic-config
|
||||
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
|
@ -29,6 +33,9 @@ persistence:
|
|||
library:
|
||||
enabled: true
|
||||
mountPath: "/library"
|
||||
remote:
|
||||
enabled: true
|
||||
mountPath: "/tmp/unmanic/remote_library"
|
||||
cache:
|
||||
enabled: true
|
||||
mountPath: "/tmp/unmanic"
|
||||
|
|
Loading…
Reference in New Issue