feat(watcharr) add watcharr (#12297)

**Description**
Open source, self-hostable watched list.
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [X] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [X] ⚖️ My code follows the style guidelines of this project
- [X] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [X] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [X] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
Xstar97TheNoob 2023-09-16 06:41:50 -04:00 committed by GitHub
parent cc4ef9640c
commit 331a061902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 259 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1 @@
# Changelog

View File

@ -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"

View File

@ -0,0 +1 @@
# README

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -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}

View File

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

View File

@ -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 -}}

View File

@ -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" . -}}

View File

@ -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