feat(jellystat) add jellystat (#11842)
**Description** A free and open source Statistics App for Jellyfin. ⚒️ 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._
This commit is contained in:
parent
9b9451ecc2
commit
5a1936ce4b
|
@ -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
|
|
@ -0,0 +1 @@
|
||||||
|
# Changelog
|
|
@ -0,0 +1,28 @@
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: "latest"
|
||||||
|
dependencies:
|
||||||
|
- name: common
|
||||||
|
repository: https://library-charts.truecharts.org
|
||||||
|
version: 14.0.1
|
||||||
|
deprecated: false
|
||||||
|
description: A free and open source Statistics App for Jellyfin.
|
||||||
|
home: https://truecharts.org/charts/incubator/jellystat
|
||||||
|
icon: https://truecharts.org/img/hotlink-ok/chart-icons/jellystat.png
|
||||||
|
keywords:
|
||||||
|
- jellystat
|
||||||
|
- jellyfin
|
||||||
|
kubeVersion: ">=1.16.0-0"
|
||||||
|
maintainers:
|
||||||
|
- email: info@truecharts.org
|
||||||
|
name: TrueCharts
|
||||||
|
url: https://truecharts.org
|
||||||
|
name: jellystat
|
||||||
|
sources:
|
||||||
|
- https://github.com/truecharts/charts/tree/master/charts/incubator/jellystat
|
||||||
|
- https://github.com/CyferShepard/Jellystat
|
||||||
|
type: application
|
||||||
|
version: 0.0.1
|
||||||
|
annotations:
|
||||||
|
truecharts.org/catagories: |
|
||||||
|
- statistics
|
||||||
|
truecharts.org/SCALE-support: "true"
|
|
@ -0,0 +1 @@
|
||||||
|
# README
|
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
|
@ -0,0 +1,110 @@
|
||||||
|
# Include{groups}
|
||||||
|
portals:
|
||||||
|
open:
|
||||||
|
# Include{portalLink}
|
||||||
|
questions:
|
||||||
|
# Include{global}
|
||||||
|
# Include{workload}
|
||||||
|
# Include{workloadDeployment}
|
||||||
|
|
||||||
|
# Include{replicas1}
|
||||||
|
# Include{podSpec}
|
||||||
|
# Include{containerMain}
|
||||||
|
|
||||||
|
|
||||||
|
# Include{containerBasic}
|
||||||
|
# Include{containerAdvanced}
|
||||||
|
# Include{containerConfig}
|
||||||
|
# Include{podOptions}
|
||||||
|
# Include{serviceRoot}
|
||||||
|
- variable: main
|
||||||
|
label: Main Service
|
||||||
|
description: The Primary service on which the Minecraft Server runs on
|
||||||
|
schema:
|
||||||
|
additional_attrs: true
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
# 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: 10681
|
||||||
|
required: true
|
||||||
|
- variable: ws
|
||||||
|
label: WebSocket 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: 10682
|
||||||
|
required: true
|
||||||
|
# Include{serviceExpertRoot}
|
||||||
|
# Include{serviceExpert}
|
||||||
|
# Include{serviceList}
|
||||||
|
# Include{persistenceRoot}
|
||||||
|
- variable: backup
|
||||||
|
label: App Backup Storage
|
||||||
|
description: Stores the Application Backup.
|
||||||
|
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}
|
|
@ -0,0 +1 @@
|
||||||
|
{{- include "tc.v1.common.lib.chart.notes" $ -}}
|
|
@ -0,0 +1,12 @@
|
||||||
|
{{/* Define the secrets */}}
|
||||||
|
{{- define "jellystat.secrets" -}}
|
||||||
|
{{- $secretName := (printf "%s-jellystat-secrets" (include "tc.v1.common.lib.chart.names.fullname" $)) }}
|
||||||
|
|
||||||
|
{{- $jwtSecret := randAlphaNum 32 -}}
|
||||||
|
{{- with lookup "v1" "Secret" .Release.Namespace $secretName -}}
|
||||||
|
{{- $jwtSecret = index .data "JWT_SECRET" | b64dec -}}
|
||||||
|
{{- end }}
|
||||||
|
enabled: true
|
||||||
|
data:
|
||||||
|
JWT_SECRET: {{ $jwtSecret }}
|
||||||
|
{{- end -}}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{{/* Make sure all variables are set properly */}}
|
||||||
|
{{- include "tc.v1.common.loader.init" . -}}
|
||||||
|
|
||||||
|
{{/* Render secrets for jellystat */}}
|
||||||
|
{{- $secrets := include "jellystat.secrets" . | fromYaml -}}
|
||||||
|
{{- if $secrets -}}
|
||||||
|
{{- $_ := set .Values.secret "jellystat-secrets" $secrets -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/* Render the templates */}}
|
||||||
|
{{- include "tc.v1.common.loader.apply" . -}}
|
|
@ -0,0 +1,73 @@
|
||||||
|
image:
|
||||||
|
repository: tccr.io/truecharts/jellystat
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
tag: vlatest@sha256:80949c980cf6c4da6e6b57630ff137df2db7ecc6a19f56e1517b7aec8533ab46
|
||||||
|
|
||||||
|
securityContext:
|
||||||
|
container:
|
||||||
|
runAsNonRoot: false
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
runAsUser: 0
|
||||||
|
runAsGroup: 0
|
||||||
|
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
enabled: true
|
||||||
|
ports:
|
||||||
|
main:
|
||||||
|
enabled: true
|
||||||
|
protocol: http
|
||||||
|
port: 10681
|
||||||
|
targetPort: 3000
|
||||||
|
ws:
|
||||||
|
enabled: true
|
||||||
|
protocol: tcp
|
||||||
|
port: 10682
|
||||||
|
targetPort: 3004
|
||||||
|
|
||||||
|
workload:
|
||||||
|
main:
|
||||||
|
podSpec:
|
||||||
|
containers:
|
||||||
|
main:
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
path: "/"
|
||||||
|
readiness:
|
||||||
|
path: "/"
|
||||||
|
startup:
|
||||||
|
path: "/"
|
||||||
|
env:
|
||||||
|
# PORT variables do not work.
|
||||||
|
# PORT: "{{ .Values.service.main.ports.main.port }}"
|
||||||
|
# WS_PORT: "{{ .Values.service.main.ports.ws.port }}"
|
||||||
|
POSTGRES_USER: "{{ .Values.cnpg.main.user }}"
|
||||||
|
POSTGRES_PASSWORD:
|
||||||
|
secretKeyRef:
|
||||||
|
name: cnpg-main-user
|
||||||
|
key: password
|
||||||
|
POSTGRES_IP:
|
||||||
|
secretKeyRef:
|
||||||
|
name: cnpg-main-urls
|
||||||
|
key: host
|
||||||
|
POSTGRES_PORT: 5432
|
||||||
|
JWT_SECRET:
|
||||||
|
secretKeyRef:
|
||||||
|
name: jellystat-secrets
|
||||||
|
key: JWT_SECRET
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
backup:
|
||||||
|
enabled: true
|
||||||
|
mountPath: "/app/backend/backup-data"
|
||||||
|
|
||||||
|
cnpg:
|
||||||
|
main:
|
||||||
|
enabled: true
|
||||||
|
# static name
|
||||||
|
user: jfstat
|
||||||
|
database: jfstat
|
||||||
|
|
||||||
|
portal:
|
||||||
|
open:
|
||||||
|
enabled: true
|
Loading…
Reference in New Issue