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:
@@ -18,7 +18,7 @@ name: unmanic
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/Unmanic/unmanic
|
- https://github.com/Unmanic/unmanic
|
||||||
- https://hub.docker.com/r/josh5/unmanic
|
- https://hub.docker.com/r/josh5/unmanic
|
||||||
version: 0.0.3
|
version: 0.0.4
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- media
|
- media
|
||||||
|
|||||||
@@ -262,6 +262,49 @@ questions:
|
|||||||
- value: "Memory"
|
- value: "Memory"
|
||||||
description: "Memory"
|
description: "Memory"
|
||||||
# Include{persistenceAdvanced}
|
# 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}
|
# 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
|
TZ: UTC
|
||||||
PUID: 568
|
PUID: 568
|
||||||
|
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: unmanic-config
|
||||||
|
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
ports:
|
ports:
|
||||||
@@ -29,6 +33,9 @@ persistence:
|
|||||||
library:
|
library:
|
||||||
enabled: true
|
enabled: true
|
||||||
mountPath: "/library"
|
mountPath: "/library"
|
||||||
|
remote:
|
||||||
|
enabled: true
|
||||||
|
mountPath: "/tmp/unmanic/remote_library"
|
||||||
cache:
|
cache:
|
||||||
enabled: true
|
enabled: true
|
||||||
mountPath: "/tmp/unmanic"
|
mountPath: "/tmp/unmanic"
|
||||||
|
|||||||
Reference in New Issue
Block a user