Publish new changes in catalog

This commit is contained in:
sonicaj
2023-08-03 13:35:56 +00:00
parent b02d20057c
commit 9bd189d971
18 changed files with 487 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.0.12
digest: sha256:debd30721d09ae8293b1cbdd9d0115981d40b47908be3035fc3cf657c9d5eedb
generated: "2023-07-27T17:58:35.529521438+03:00"

View File

@@ -0,0 +1,27 @@
name: tiny-media-manager
description: tinyMediaManager is a media management tool written in Java/Swing.
annotations:
title: tinyMediaManager
type: application
version: 1.0.0
apiVersion: v2
appVersion: 4.3.12
kubeVersion: '>=1.16.0-0'
maintainers:
- name: truenas
url: https://www.truenas.com/
email: dev@ixsystems.com
dependencies:
- name: common
repository: file://../../../common
version: 1.0.12
home: https://www.tinymediamanager.org/
icon: https://gitlab.com/tinyMediaManager/tinymediamanager.gitlab.io/-/raw/master/images/tmm.png
sources:
- https://www.tinymediamanager.org/
- https://github.com/truenas/charts/tree/master/library/ix-dev/community/tiny-media-manager
- https://hub.docker.com/r/tinymediamanager/tinymediamanager
keywords:
- media
- tv-shows
- movies

View File

@@ -0,0 +1,3 @@
# tinyMediaManager
[tinyMediaManager](https://www.tinymediamanager.org/) is a media management tool written in Java/Swing.

View File

@@ -0,0 +1,3 @@
# tinyMediaManager
[tinyMediaManager](https://www.tinymediamanager.org/) is a media management tool written in Java/Swing.

View File

@@ -0,0 +1,14 @@
tmmConfig:
password: secret
tmmNetwork:
webPort: 31000
tmmID:
user: 1000
group: 1000
tmmStorage:
data:
type: hostPath
hostPath: /mnt/{{ .Release.Namespace }}/data

View File

@@ -0,0 +1,17 @@
tmmConfig:
password: secret
tmmNetwork:
webPort: 31000
tmmStorage:
data:
type: hostPath
hostPath: /mnt/{{ .Release.Namespace }}/data
additionalStorages:
- type: hostPath
hostPath: /mnt/{{ .Release.Namespace }}/tv-shows
mountPath: /tv-shows
- type: hostPath
hostPath: /mnt/{{ .Release.Namespace }}/movies
mountPath: /movies

View File

@@ -0,0 +1,11 @@
tmmConfig:
password: secret
tmmNetwork:
webPort: 31000
hostNetwork: true
tmmStorage:
data:
type: hostPath
hostPath: /mnt/{{ .Release.Namespace }}/data

View File

@@ -0,0 +1,26 @@
image:
repository: tinymediamanager/tinymediamanager
pullPolicy: IfNotPresent
tag: 4.3.12
resources:
limits:
cpu: 4000m
memory: 8Gi
tmmConfig:
password: ''
additionalEnvs: []
tmmNetwork:
webPort: 30057
tmmID:
user: 568
group: 568
tmmStorage:
config:
type: ixVolume
datasetName: data
additionalStorages: []

View File

@@ -0,0 +1,14 @@
runAsContext:
- userName: root
groupName: root
gid: 0
uid: 0
description: tinyMediaManager runs as root user
capabilities:
- name: CHOWN
description: tinyMediaManager is able to chown files.
- name: SETGID
description: tinyMediaManager is able to set group ID for it's sub-processes.
- name: SETUID
description: tinyMediaManager is able to set user ID for it's sub-processes.
hostMounts: []

View File

@@ -0,0 +1,232 @@
groups:
- name: tinyMediaManager Configuration
description: Configure tinyMediaManager
- name: User and Group Configuration
description: Configure User and Group for tinyMediaManager
- name: Network Configuration
description: Configure Network for tinyMediaManager
- name: Storage Configuration
description: Configure Storage for tinyMediaManager
- name: Resources Configuration
description: Configure Resources for tinyMediaManager
portals:
web_portal:
protocols:
- "$kubernetes-resource_configmap_portal_protocol"
host:
- "$kubernetes-resource_configmap_portal_host"
ports:
- "$kubernetes-resource_configmap_portal_port"
path: "$kubernetes-resource_configmap_portal_path"
questions:
- variable: tmmConfig
label: ""
group: tinyMediaManager Configuration
schema:
type: dict
attrs:
- variable: password
label: Password (Optional)
description: The password for tinyMediaManager.
schema:
type: string
default: ""
- variable: additionalEnvs
label: Additional Environment Variables
description: Configure additional environment variables for tinyMediaManager.
schema:
type: list
default: []
items:
- variable: env
label: Environment Variable
schema:
type: dict
attrs:
- variable: name
label: Name
schema:
type: string
required: true
- variable: value
label: Value
schema:
type: string
required: true
- variable: tmmID
label: ""
group: User and Group Configuration
schema:
type: dict
attrs:
- variable: user
label: User ID
description: The user id that tinyMediaManager files will be owned by.
schema:
type: int
min: 2
default: 568
required: true
- variable: group
label: Group ID
description: The group id that tinyMediaManager files will be owned by.
schema:
type: int
min: 2
default: 568
required: true
- variable: tmmNetwork
label: ""
group: Network Configuration
schema:
type: dict
attrs:
- variable: webPort
label: Web Port
description: The port for the tinyMediaManager Web UI.
schema:
type: int
default: 30057
min: 9000
max: 65535
required: true
- variable: tmmStorage
label: ""
group: Storage Configuration
schema:
type: dict
attrs:
- variable: data
label: tinyMediaManager Data Storage
description: The path to store tinyMediaManager Data.
schema:
type: dict
attrs:
- variable: type
label: Type
description: |
ixVolume: Is dataset created automatically by the system.</br>
Host Path: Is a path that already exists on the system.
schema:
type: string
required: true
default: "ixVolume"
enum:
- value: "hostPath"
description: Host Path (Path that already exists on the system)
- value: "ixVolume"
description: ixVolume (Dataset created automatically by the system)
- variable: datasetName
label: Dataset Name
schema:
type: string
show_if: [["type", "=", "ixVolume"]]
required: true
hidden: true
immutable: true
default: "data"
$ref:
- "normalize/ixVolume"
- variable: hostPath
label: Host Path
schema:
type: hostpath
show_if: [["type", "=", "hostPath"]]
immutable: true
required: true
- variable: additionalStorages
label: Additional Storage
description: Additional storage for tinyMediaManager.
schema:
type: list
default: []
items:
- variable: storageEntry
label: Storage Entry
schema:
type: dict
attrs:
- variable: type
label: Type
description: |
ixVolume: Is dataset created automatically by the system.</br>
Host Path: Is a path that already exists on the system.
schema:
type: string
required: true
default: "ixVolume"
enum:
- value: "hostPath"
description: Host Path (Path that already exists on the system)
- value: "ixVolume"
description: ixVolume (Dataset created automatically by the system)
- variable: mountPath
label: Mount Path
description: The path inside the container to mount the storage.
schema:
type: path
required: true
- variable: hostPath
label: Host Path
description: The host path to use for storage.
schema:
type: hostpath
show_if: [["type", "=", "hostPath"]]
required: true
- variable: datasetName
label: Dataset Name
description: The name of the dataset to use for storage.
schema:
type: string
show_if: [["type", "=", "ixVolume"]]
required: true
immutable: true
default: "storage_entry"
$ref:
- "normalize/ixVolume"
- variable: resources
group: Resources Configuration
label: ""
schema:
type: dict
attrs:
- variable: limits
label: Limits
schema:
type: dict
attrs:
- variable: cpu
label: CPU
description: CPU limit for tinyMediaManager.
schema:
type: string
max_length: 6
valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
valid_chars_error: |
Valid CPU limit formats are</br>
- Plain Integer - eg. 1</br>
- Float - eg. 0.5</br>
- Milicpu - eg. 500m
default: "4000m"
required: true
- variable: memory
label: Memory
description: Memory limit for tinyMediaManager.
schema:
type: string
max_length: 12
valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
valid_chars_error: |
Valid Memory limit formats are</br>
- Suffixed with E/P/T/G/M/K - eg. 1G</br>
- Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
- Plain Integer in bytes - eg. 1024</br>
- Exponent - eg. 134e6
default: "8Gi"
required: true

View File

@@ -0,0 +1 @@
{{ include "ix.v1.common.lib.chart.notes" $ }}

View File

@@ -0,0 +1,30 @@
{{- define "tmm.persistence" -}}
persistence:
data:
enabled: true
type: {{ .Values.tmmStorage.data.type }}
datasetName: {{ .Values.tmmStorage.data.datasetName | default "" }}
hostPath: {{ .Values.tmmStorage.data.hostPath | default "" }}
targetSelector:
tmm:
tmm:
mountPath: /data
tmp:
enabled: true
type: emptyDir
targetSelector:
tmm:
tmm:
mountPath: /tmp
{{- range $idx, $storage := .Values.tmmStorage.additionalStorages }}
{{ printf "tmm-%v" (int $idx) }}:
enabled: true
type: {{ $storage.type }}
datasetName: {{ $storage.datasetName | default "" }}
hostPath: {{ $storage.hostPath | default "" }}
targetSelector:
tmm:
tmm:
mountPath: {{ $storage.mountPath }}
{{- end }}
{{- end -}}

View File

@@ -0,0 +1,12 @@
{{- define "tmm.portal" -}}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: portal
data:
path: "/"
port: {{ .Values.tmmNetwork.webPort | quote }}
protocol: http
host: $node_ip
{{- end -}}

View File

@@ -0,0 +1,16 @@
{{- define "tmm.service" -}}
service:
tmm:
enabled: true
primary: true
type: NodePort
targetSelector: tmm
ports:
webui:
enabled: true
primary: true
port: {{ .Values.tmmNetwork.webPort }}
nodePort: {{ .Values.tmmNetwork.webPort }}
targetPort: 4000
targetSelector: tmm
{{- end -}}

View File

@@ -0,0 +1,53 @@
{{- define "tmm.workload" -}}
workload:
tmm:
enabled: true
primary: true
type: Deployment
podSpec:
hostNetwork: false
securityContext:
fsGroup: {{ .Values.tmmID.group }}
containers:
tmm:
enabled: true
primary: true
imageSelector: image
securityContext:
runAsUser: 0
runAsGroup: 0
runAsNonRoot: false
readOnlyRootFilesystem: false
capabilities:
add:
- SETUID
- SETGID
- CHOWN
fixedEnv:
PUID: {{ .Values.tmmID.user }}
env:
PASSWORD: {{ .Values.tmmConfig.password }}
{{ with .Values.tmmConfig.additionalEnvs }}
envList:
{{ range $env := . }}
- name: {{ $env.name }}
value: {{ $env.value }}
{{ end }}
{{ end }}
probes:
liveness:
enabled: true
type: http
port: 4000
path: /
readiness:
enabled: true
type: http
port: 4000
path: /
startup:
enabled: true
type: http
port: 4000
path: /
{{- end -}}

View File

@@ -0,0 +1,11 @@
{{- include "ix.v1.common.loader.init" . -}}
{{/* Merge the templates with Values */}}
{{- $_ := mustMergeOverwrite .Values (include "tmm.workload" $ | fromYaml) -}}
{{- $_ := mustMergeOverwrite .Values (include "tmm.service" $ | fromYaml) -}}
{{- $_ := mustMergeOverwrite .Values (include "tmm.persistence" $ | fromYaml) -}}
{{/* Create the configmap for portal manually*/}}
{{- include "tmm.portal" $ -}}
{{- include "ix.v1.common.loader.apply" . -}}

View File

@@ -0,0 +1,11 @@
icon_url: https://gitlab.com/tinyMediaManager/tinymediamanager.gitlab.io/-/raw/master/images/tmm.png
categories:
- media
screenshots:
- https://www.tinymediamanager.org/images/screenshots/v4/movies/movies01.png
- https://www.tinymediamanager.org/images/screenshots/v4/movies/movies08.png
- https://www.tinymediamanager.org/images/screenshots/v4/movies/movies10.png
- https://www.tinymediamanager.org/images/screenshots/v4/movies/movies14.png
tags:
- tv-shows
- movies