From 7a84a44f86f74b9383a27630dea84bb313df98cd Mon Sep 17 00:00:00 2001 From: Xstar97 Date: Sun, 8 Jan 2023 08:50:43 -0500 Subject: [PATCH] fix(metube): BREAKING CHANGES - separate config/download dirs. (#6154) * fix(metube) separate config/download dirs. * remove the gui option. * fix spelling * Update charts/stable/metube/questions.yaml 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> --- charts/stable/metube/Chart.yaml | 4 +-- charts/stable/metube/questions.yaml | 56 ++++++++++++++++------------- charts/stable/metube/values.yaml | 7 +++- 3 files changed, 40 insertions(+), 27 deletions(-) diff --git a/charts/stable/metube/Chart.yaml b/charts/stable/metube/Chart.yaml index 85f88f9039f..7db5d4880e9 100644 --- a/charts/stable/metube/Chart.yaml +++ b/charts/stable/metube/Chart.yaml @@ -4,7 +4,7 @@ dependencies: - name: common repository: https://library-charts.truecharts.org version: 11.1.2 -description: Web GUI for youtube-dl (using the yt-dlp fork) with playlist support. Allows you to download videos from YouTube and dozens of other sites +description: Web GUI for youtube-dl. home: https://truecharts.org/charts/stable/metube icon: https://truecharts.org/img/hotlink-ok/chart-icons/metube.png keywords: @@ -18,7 +18,7 @@ name: metube sources: - https://github.com/truecharts/charts/tree/master/charts/stable/metube - https://github.com/alexta69/metube -version: 4.0.7 +version: 5.0.0 annotations: truecharts.org/catagories: | - media diff --git a/charts/stable/metube/questions.yaml b/charts/stable/metube/questions.yaml index 51b8485c8ee..48b6d6f7bc3 100644 --- a/charts/stable/metube/questions.yaml +++ b/charts/stable/metube/questions.yaml @@ -9,29 +9,29 @@ questions: # Include{replica1} # Include{controllerExpertExtraArgs} - variable: env - group: "App Configuration" - label: "Image Environment" + group: App Configuration + label: Image Environment schema: additional_attrs: true type: dict attrs: - variable: OUTPUT_TEMPLATE - label: "OUTPUT_TEMPLATE" - description: "The template for the filenames of the downloaded videos" + label: Output Template + description: The template for the filenames of the downloaded videos schema: type: string default: "%(title)s.%(ext)s" - variable: YTDL_OPTIONS - label: "YTDL_OPTIONS" - description: "Additional options to pass to youtube-dl, in JSON format" + label: YTDL Options + description: Additional options to pass to youtube-dl, in JSON format schema: type: string default: "{}" # Include{containerConfig} # Include{serviceRoot} - variable: main - label: "Main Service" - description: "The Primary service on which the healthcheck runs, often the webUI" + label: Main Service + description: The Primary service on which the healthcheck runs, often the webUI schema: additional_attrs: true type: dict @@ -39,14 +39,14 @@ questions: # Include{serviceSelectorLoadBalancer} # Include{serviceSelectorExtras} - variable: main - label: "Main Service Port Configuration" + label: Main Service Port Configuration schema: additional_attrs: true type: dict attrs: - variable: port - label: "Port" - description: "This port exposes the container port on the service" + label: Port + description: This port exposes the container port on the service schema: type: int default: 10216 @@ -56,9 +56,17 @@ questions: # Include{serviceExpert} # Include{serviceList} # Include{persistenceRoot} + - variable: config + label: App Config Storage + description: Stores the Application Config. + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} - variable: downloads - label: "App Downloads Storage" - description: "Stores the Application Downloads." + label: App Downloads Storage + description: Stores the Application Downloads. schema: additional_attrs: true type: dict @@ -67,7 +75,7 @@ questions: # Include{persistenceList} # Include{ingressRoot} - variable: main - label: "Main Ingress" + label: Main Ingress schema: additional_attrs: true type: dict @@ -79,41 +87,41 @@ questions: # Include{security} # Include{securityContextAdvancedRoot} - variable: privileged - label: "Privileged mode" + label: Privileged mode schema: type: boolean default: false - variable: readOnlyRootFilesystem - label: "ReadOnly Root Filesystem" + label: ReadOnly Root Filesystem schema: type: boolean default: true - variable: allowPrivilegeEscalation - label: "Allow Privilege Escalation" + label: Allow Privilege Escalation schema: type: boolean default: false - variable: runAsNonRoot - label: "runAsNonRoot" + label: runAsNonRoot schema: type: boolean default: true # Include{podSecurityContextRoot} - variable: runAsUser - label: "runAsUser" - description: "The UserID of the user running the application" + label: runAsUser + description: The UserID of the user running the application schema: type: int default: 568 - variable: runAsGroup - label: "runAsGroup" - description: "The groupID this App of the user running the application" + label: runAsGroup + description: The groupID this App of the user running the application schema: type: int default: 568 - variable: fsGroup - label: "fsGroup" - description: "The group that should own ALL storage." + label: fsGroup + description: The group that should own ALL storage. schema: type: int default: 568 diff --git a/charts/stable/metube/values.yaml b/charts/stable/metube/values.yaml index 84937a27f39..8099a964fc4 100644 --- a/charts/stable/metube/values.yaml +++ b/charts/stable/metube/values.yaml @@ -4,6 +4,8 @@ image: pullPolicy: IfNotPresent env: + STATE_DIR: /config + DOWNLOAD_DIR: /downloads OUTPUT_TEMPLATE: "%(title)s.%(ext)s" YTDL_OPTIONS: "{}" @@ -15,9 +17,12 @@ service: targetPort: 8081 persistence: + config: + enabled: true + mountPath: /config downloads: enabled: true - mountPath: "/downloads" + mountPath: /downloads portal: enabled: true