diff --git a/charts/incubator/watcharr/.helmignore b/charts/incubator/watcharr/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/watcharr/.helmignore @@ -0,0 +1,30 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ +# OWNERS file for Kubernetes +OWNERS +# helm-docs templates +*.gotmpl +# docs folder +/docs +# icon +icon.png diff --git a/charts/incubator/watcharr/CHANGELOG.md b/charts/incubator/watcharr/CHANGELOG.md new file mode 100644 index 00000000000..825c32f0d03 --- /dev/null +++ b/charts/incubator/watcharr/CHANGELOG.md @@ -0,0 +1 @@ +# Changelog diff --git a/charts/incubator/watcharr/Chart.yaml b/charts/incubator/watcharr/Chart.yaml new file mode 100644 index 00000000000..c0408337545 --- /dev/null +++ b/charts/incubator/watcharr/Chart.yaml @@ -0,0 +1,28 @@ +apiVersion: v2 +appVersion: "1.16.0" +dependencies: + - name: common + repository: https://library-charts.truecharts.org + version: 14.0.3 +deprecated: false +description: Open source, self-hostable watched list +home: https://truecharts.org/charts/incubator/watcharr +icon: https://truecharts.org/img/hotlink-ok/chart-icons/watcharr.png +keywords: + - watcharr + - media +kubeVersion: ">=1.16.0-0" +maintainers: + - email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: watcharr +sources: + - https://github.com/truecharts/charts/tree/master/charts/incubator/watcharr + - https://github.com/sbondCo/Watcharr +type: application +version: 0.0.1 +annotations: + truecharts.org/catagories: | + - media + truecharts.org/SCALE-support: "true" diff --git a/charts/incubator/watcharr/README.md b/charts/incubator/watcharr/README.md new file mode 100644 index 00000000000..7e59600739c --- /dev/null +++ b/charts/incubator/watcharr/README.md @@ -0,0 +1 @@ +# README diff --git a/charts/incubator/watcharr/icon.png b/charts/incubator/watcharr/icon.png new file mode 100644 index 00000000000..f782b68c08d Binary files /dev/null and b/charts/incubator/watcharr/icon.png differ diff --git a/charts/incubator/watcharr/questions.yaml b/charts/incubator/watcharr/questions.yaml new file mode 100644 index 00000000000..b5445950871 --- /dev/null +++ b/charts/incubator/watcharr/questions.yaml @@ -0,0 +1,123 @@ +# Include{groups} +portals: + open: +# Include{portalLink} +questions: +# Include{global} +# Include{workload} +# Include{workloadDeployment} + +# Include{replicas1} +# Include{podSpec} +# Include{containerMain} + +# Include{containerBasic} +# Include{containerAdvanced} + + - variable: watcharr + group: App Configuration + label: Watcharr + schema: + additional_attrs: true + type: dict + attrs: + - variable: jellyfin_host + label: Jellyfin Host + description: To enable it as an auth provider. + schema: + type: string + default: "" + - variable: signup_enabled + label: SignUp Enabled + description: To enable it as an auth provider. + schema: + type: boolean + default: true + - variable: tmdb_key + label: TMDB Key + description: Provide your own TMDB API Key. + schema: + type: string + default: "" + - variable: debug + label: Debug + description: Enable/disable debug logging. + schema: + type: boolean + default: false + +# Include{containerConfig} +# Include{podOptions} +# Include{serviceRoot} +# Include{serviceMain} +# Include{serviceSelectorLoadBalancer} +# Include{serviceSelectorExtras} + - variable: main + 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" + schema: + type: int + default: 10684 + required: true +# Include{serviceExpertRoot} +# Include{serviceExpert} +# Include{serviceList} +# Include{persistenceRoot} + - variable: data + label: "App Data Storage" + description: "Stores the Application Data." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} +# Include{persistenceList} +# Include{ingressRoot} + - variable: main + label: "Main Ingress" + schema: + additional_attrs: true + type: dict + attrs: +# Include{ingressDefault} +# Include{ingressTLS} +# Include{ingressTraefik} +# Include{ingressAdvanced} +# Include{ingressList} +# Include{securityContextRoot} + + - variable: runAsUser + label: "runAsUser" + description: "The UserID of the user running the application" + schema: + type: int + default: 0 + - variable: runAsGroup + label: "runAsGroup" + description: "The groupID of the user running the application" + schema: + type: int + default: 0 +# Include{securityContextContainer} +# Include{securityContextAdvanced} +# Include{securityContextPod} + - variable: fsGroup + label: "fsGroup" + description: "The group that should own ALL storage." + schema: + type: int + default: 568 + +# Include{resources} +# Include{advanced} +# Include{addons} +# Include{codeserver} +# Include{netshoot} +# Include{vpn} +# Include{documentation} diff --git a/charts/incubator/watcharr/templates/NOTES.txt b/charts/incubator/watcharr/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/watcharr/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/watcharr/templates/_secrets.tpl b/charts/incubator/watcharr/templates/_secrets.tpl new file mode 100644 index 00000000000..f4e09a799a0 --- /dev/null +++ b/charts/incubator/watcharr/templates/_secrets.tpl @@ -0,0 +1,13 @@ +{{/* Define the secrets */}} +{{- define "watcharr.secrets" -}} +{{- $secretName := (printf "%s-watcharr-secrets" (include "tc.v1.common.lib.chart.names.fullname" $)) }} + +{{- $secretKey := randAlphaNum 64 -}} + + {{- with lookup "v1" "Secret" .Release.Namespace $secretName -}} + {{- $secretKey = index .data "JWT_SECRET" | b64dec -}} + {{- end }} +enabled: true +data: + JWT_SECRET: {{ $secretKey }} +{{- end -}} diff --git a/charts/incubator/watcharr/templates/common.yaml b/charts/incubator/watcharr/templates/common.yaml new file mode 100644 index 00000000000..253cfe6e4d4 --- /dev/null +++ b/charts/incubator/watcharr/templates/common.yaml @@ -0,0 +1,11 @@ +{{/* Make sure all variables are set properly */}} +{{- include "tc.v1.common.loader.init" . -}} + +{{/* Render secrets for watcharr */}} +{{- $secrets := include "watcharr.secrets" . | fromYaml -}} +{{- if $secrets -}} + {{- $_ := set .Values.secret "watcharr-secrets" $secrets -}} +{{- end -}} + +{{/* Render the templates */}} +{{- include "tc.v1.common.loader.apply" . -}} diff --git a/charts/incubator/watcharr/values.yaml b/charts/incubator/watcharr/values.yaml new file mode 100644 index 00000000000..80f79d74bd6 --- /dev/null +++ b/charts/incubator/watcharr/values.yaml @@ -0,0 +1,51 @@ +image: + repository: tccr.io/truecharts/watcharr + pullPolicy: IfNotPresent + tag: v1.16.1@sha256:0759f67ac6868998b0dc918f4240ae764fcc2e93289096c8e4c80319e6940ac6 + +securityContext: + container: + readOnlyRootFilesystem: false + runAsNonRoot: false + runAsUser: 0 + runAsGroup: 0 + +service: + main: + ports: + main: + protocol: http + targetPort: 3080 + port: 10684 + +watcharr: + mode: prod + jellyfin_host: "" + signup_enabled: true + tmdb_key: "" + debug: false + +workload: + main: + podSpec: + containers: + main: + env: + JELLYFIN_HOST: "{{ .Values.watcharr.jellyfin_host }}" + SIGNUP_ENABLED: "{{ .Values.watcharr.signup_enabled }}" + TMDB_KEY: "{{ .Values.watcharr.tmdb_key }}" + DEBUG: "{{ .Values.watcharr.debug }}" + MODE: "{{ .Values.watcharr.mode }}" + JWT_SECRET: + secretKeyRef: + name: watcharr-secrets + key: JWT_SECRET + +persistence: + data: + enabled: true + mountPath: "/data" + +portal: + open: + enabled: true