fix(plex-meta-manager) add configmap + gui options (#6155)
* fix(plex-meta-manager) add configmap * remove item from catagories * Update charts/incubator/plex-meta-manager/templates/_secret.tpl Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * Update charts/incubator/plex-meta-manager/templates/_secret.tpl Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * Update charts/incubator/plex-meta-manager/questions.yaml Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * Update charts/incubator/plex-meta-manager/templates/_secret.tpl Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * Update charts/incubator/plex-meta-manager/templates/_secret.tpl Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * Update charts/incubator/plex-meta-manager/templates/_secret.tpl Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * Update charts/incubator/plex-meta-manager/templates/_secret.tpl Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * Update charts/incubator/plex-meta-manager/questions.yaml Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * Update charts/incubator/plex-meta-manager/templates/_secret.tpl Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
@@ -1,27 +1,27 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
kubeVersion: ">=1.16.0-0"
|
|
||||||
name: plex-meta-manager
|
|
||||||
version: 2.0.8
|
|
||||||
appVersion: "1.18.1"
|
appVersion: "1.18.1"
|
||||||
description: Python script to update metadata and automatically build collections.
|
|
||||||
type: application
|
|
||||||
deprecated: false
|
|
||||||
home: https://truecharts.org/charts/incubator/plex-meta-manager
|
|
||||||
icon: https://truecharts.org/img/hotlink-ok/chart-icons/plex-meta-manager.png
|
|
||||||
keywords:
|
|
||||||
- plex-meta-manager
|
|
||||||
sources:
|
|
||||||
- https://github.com/truecharts/charts/tree/master/charts/incubator/plex-meta-manager
|
|
||||||
- https://hub.docker.com/r/meisnate12/plex-meta-manager
|
|
||||||
- https://github.com/meisnate12/Plex-Meta-Manager
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: common
|
- name: common
|
||||||
repository: https://library-charts.truecharts.org
|
repository: https://library-charts.truecharts.org
|
||||||
version: 11.1.2
|
version: 11.1.2
|
||||||
|
deprecated: false
|
||||||
|
description: Python script to update metadata and automatically build collections.
|
||||||
|
home: https://truecharts.org/charts/incubator/plex-meta-manager
|
||||||
|
icon: https://truecharts.org/img/hotlink-ok/chart-icons/plex-meta-manager.png
|
||||||
|
keywords:
|
||||||
|
- plex-meta-manager
|
||||||
|
kubeVersion: ">=1.16.0-0"
|
||||||
maintainers:
|
maintainers:
|
||||||
- email: info@truecharts.org
|
- email: info@truecharts.org
|
||||||
name: TrueCharts
|
name: TrueCharts
|
||||||
url: https://truecharts.org
|
url: https://truecharts.org
|
||||||
|
name: plex-meta-manager
|
||||||
|
sources:
|
||||||
|
- https://github.com/truecharts/charts/tree/master/charts/incubator/plex-meta-manager
|
||||||
|
- https://hub.docker.com/r/meisnate12/plex-meta-manager
|
||||||
|
- https://github.com/meisnate12/Plex-Meta-Manager
|
||||||
|
type: application
|
||||||
|
version: 2.0.9
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- media
|
- media
|
||||||
|
|||||||
@@ -6,30 +6,50 @@ questions:
|
|||||||
# Include{replicas}
|
# Include{replicas}
|
||||||
# Include{replica1}
|
# Include{replica1}
|
||||||
# Include{controllerExpertExtraArgs}
|
# Include{controllerExpertExtraArgs}
|
||||||
- variable: env
|
- variable: pmm
|
||||||
group: "App Configuration"
|
group: App Configuration
|
||||||
label: "Image Environment"
|
label: PMM Configuration
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
attrs:
|
attrs:
|
||||||
- variable: PMM_RUN
|
- variable: plex_url
|
||||||
label: "PMM RUN"
|
label: Plex Url
|
||||||
description: "Perform a run immediately, bypassing the time to run flag."
|
|
||||||
schema:
|
|
||||||
type: boolean
|
|
||||||
default: true
|
|
||||||
show_subquestions_if: false
|
|
||||||
subquestions:
|
|
||||||
- variable: PMM_TIME
|
|
||||||
label: "PMM TIME"
|
|
||||||
description: "Specify the time of day that Plex Meta Manager will run. Format: HH:MM"
|
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
- variable: PMM_NO_COUNTDOWN
|
- variable: plex_token
|
||||||
label: "PMM NO COUNTDOWN"
|
label: Plex Token
|
||||||
description: "Run without displaying a countdown to the next scheduled run."
|
schema:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
private: true
|
||||||
|
default: ""
|
||||||
|
- variable: run
|
||||||
|
label: PMM Run
|
||||||
|
description: Perform a run immediately, bypassing the time to run flag.
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
show_subquestions_if: false
|
||||||
|
subquestions:
|
||||||
|
- variable: times
|
||||||
|
label: PMM Time
|
||||||
|
description: "Specify the time of day that Plex Meta Manager will run. Format: HH:MM"
|
||||||
|
schema:
|
||||||
|
type: list
|
||||||
|
default: ["00:00"]
|
||||||
|
items:
|
||||||
|
- variable: timeEntry
|
||||||
|
label: Time Entry
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
default: ""
|
||||||
|
- variable: no_countdown
|
||||||
|
label: PMM No Countdown
|
||||||
|
description: Run without displaying a countdown to the next scheduled run.
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
@@ -40,8 +60,8 @@ questions:
|
|||||||
# Include{serviceList}
|
# Include{serviceList}
|
||||||
# Include{persistenceRoot}
|
# Include{persistenceRoot}
|
||||||
- variable: config
|
- variable: config
|
||||||
label: "App Config Storage"
|
label: App Config Storage
|
||||||
description: "Stores the Application Configuration."
|
description: Stores the Application Configuration.
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
@@ -51,41 +71,41 @@ questions:
|
|||||||
# Include{security}
|
# Include{security}
|
||||||
# Include{securityContextAdvancedRoot}
|
# Include{securityContextAdvancedRoot}
|
||||||
- variable: privileged
|
- variable: privileged
|
||||||
label: "Privileged mode"
|
label: Privileged mode
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
- variable: readOnlyRootFilesystem
|
- variable: readOnlyRootFilesystem
|
||||||
label: "ReadOnly Root Filesystem"
|
label: ReadOnly Root Filesystem
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
- variable: allowPrivilegeEscalation
|
- variable: allowPrivilegeEscalation
|
||||||
label: "Allow Privilege Escalation"
|
label: Allow Privilege Escalation
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
- variable: runAsNonRoot
|
- variable: runAsNonRoot
|
||||||
label: "runAsNonRoot"
|
label: runAsNonRoot
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
# Include{podSecurityContextRoot}
|
# Include{podSecurityContextRoot}
|
||||||
- variable: runAsUser
|
- variable: runAsUser
|
||||||
label: "runAsUser"
|
label: runAsUser
|
||||||
description: "The UserID of the user running the application"
|
description: The UserID of the user running the application
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
default: 0
|
default: 0
|
||||||
- variable: runAsGroup
|
- variable: runAsGroup
|
||||||
label: "runAsGroup"
|
label: runAsGroup
|
||||||
description: "The groupID this App of the user running the application"
|
description: The groupID this App of the user running the application
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
default: 0
|
default: 0
|
||||||
- variable: fsGroup
|
- variable: fsGroup
|
||||||
label: "fsGroup"
|
label: fsGroup
|
||||||
description: "The group that should own ALL storage."
|
description: The group that should own ALL storage.
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
default: 568
|
default: 568
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{{/* Define the secret */}}
|
||||||
|
{{- define "pmm.secret" -}}
|
||||||
|
|
||||||
|
{{- $secretName := printf "%s-secret" (include "tc.common.names.fullname" .) }}
|
||||||
|
{{- $pmm := .Values.pmm -}}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: {{ $secretName }}
|
||||||
|
labels:
|
||||||
|
{{- include "tc.common.labels" . | nindent 4 }}
|
||||||
|
stringData:
|
||||||
|
{{/* PMM */}}
|
||||||
|
PMM_CONFIG: "/config/config.yml"
|
||||||
|
{{- if not $pmm.run }}
|
||||||
|
PMM_TIME: {{ join "," $pmm.times | quote }}
|
||||||
|
PMM_NO_COUNTDOWN: {{ $pmm.no_countdown | quote }}
|
||||||
|
{{- end }}
|
||||||
|
PMM_RUN: {{ $pmm.run | quote }}
|
||||||
|
{{/* plex */}}
|
||||||
|
PMM_PLEX_URL: {{ . | quote }}
|
||||||
|
PMM_PLEX_TOKEN: {{ . | quote }}
|
||||||
|
{{- end -}}
|
||||||
@@ -1 +1,8 @@
|
|||||||
{{ include "tc.common.loader.all" . }}
|
{{/* Make sure all variables are set properly */}}
|
||||||
|
{{- include "tc.common.loader.init" . }}
|
||||||
|
|
||||||
|
{{/* Render secret */}}
|
||||||
|
{{- include "pmm.secret" . }}
|
||||||
|
|
||||||
|
{{/* Render the templates */}}
|
||||||
|
{{ include "tc.common.loader.apply" . }}
|
||||||
|
|||||||
@@ -11,11 +11,17 @@ podSecurityContext:
|
|||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
runAsGroup: 0
|
runAsGroup: 0
|
||||||
|
|
||||||
env:
|
pmm:
|
||||||
PMM_CONFIG: "/config/config.yml"
|
run: false
|
||||||
# PMM_TIME: ""
|
no_countdown: true
|
||||||
PMM_RUN: true
|
time:
|
||||||
PMM_NO_COUNTDOWN: true
|
- "00:00"
|
||||||
|
# plex_url: ""
|
||||||
|
# plex_token: ""
|
||||||
|
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: '{{ include "tc.common.names.fullname" . }}-secret'
|
||||||
|
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
|
|||||||
Reference in New Issue
Block a user