feat(zusam,sheetable): add zusam,sheetable (#3337)

* feat(zusam): add zusam

* update values

* feat(sheetable): add sheetable

* fix zusam and move to incubator

* fix key ref

* http ports

* add some variables
This commit is contained in:
Stavros Kois
2022-07-29 11:51:35 +03:00
committed by GitHub
parent 5303a04191
commit e62ad39f42
15 changed files with 1019 additions and 0 deletions
+30
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
+30
View File
@@ -0,0 +1,30 @@
apiVersion: v2
appVersion: "10.6.2"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 10.4.8
- condition: postgresql.enabled
name: postgresql
repository: https://charts.truecharts.org/
version: 8.0.48
description: SheetAble is an easy to use music sheet organiser for all the music enthusiasts out there.
home: AUTOGENERATED
icon: https://truecharts.org/img/chart-icons/sheetable.png
keywords:
- sheetable
kubeVersion: ">=1.16.0-0"
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: https://truecharts.org
name: sheetable
sources:
- https://sheetable.net/docs
- https://github.com/SheetAble
version: 0.0.1
annotations:
truecharts.org/catagories: |
- music
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U
Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

+278
View File
@@ -0,0 +1,278 @@
# Include{groups}
portals:
open:
protocols:
- "$kubernetes-resource_configmap_portal_protocol"
host:
- "$kubernetes-resource_configmap_portal_host"
ports:
- "$kubernetes-resource_configmap_portal_port"
questions:
- variable: portal
group: "Container Image"
label: "Configure Portal Button"
schema:
type: dict
hidden: true
attrs:
- variable: enabled
label: "Enable"
description: "enable the portal button"
schema:
hidden: true
editable: false
type: boolean
default: true
# Include{global}
- variable: controller
group: "Controller"
label: ""
schema:
additional_attrs: true
type: dict
attrs:
- variable: advanced
label: "Show Advanced Controller Settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: type
description: "Please specify type of workload to deploy"
label: "(Advanced) Controller Type"
schema:
type: string
default: "deployment"
required: true
enum:
- value: "deployment"
description: "Deployment"
- value: "statefulset"
description: "Statefulset"
- value: "daemonset"
description: "Daemonset"
- variable: replicas
description: "Number of desired pod replicas"
label: "Desired Replicas"
schema:
type: int
default: 1
required: true
- variable: strategy
description: "Please specify type of workload to deploy"
label: "(Advanced) Update Strategy"
schema:
type: string
default: "Recreate"
required: true
enum:
- value: "Recreate"
description: "Recreate: Kill existing pods before creating new ones"
- value: "RollingUpdate"
description: "RollingUpdate: Create new pods and then kill old ones"
- value: "OnDelete"
description: "(Legacy) OnDelete: ignore .spec.template changes"
# Include{controllerExpert}
- variable: secretEnv
group: "Container Configuration"
label: "Image Secrets"
schema:
additional_attrs: true
type: dict
attrs:
- variable: ADMIN_EMAIL
label: 'ADMIN_EMAIL'
description: "Your admin email"
schema:
type: string
required: true
default: ""
- variable: ADMIN_PASSWORD
label: 'ADMIN_PASSWORD'
description: "Your admin password"
schema:
type: string
required: true
private: true
default: ""
# Include{containerConfig}
- variable: service
group: "Networking and Services"
label: "Configure Service(s)"
schema:
additional_attrs: true
type: dict
attrs:
- variable: main
label: "Main Service"
description: "The Primary service on which the healthcheck runs, often the webUI"
schema:
additional_attrs: true
type: dict
attrs:
# Include{serviceSelector}
- 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: 10284
required: true
- variable: advanced
label: "Show Advanced settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: protocol
label: "Port Type"
schema:
type: string
default: "HTTP"
enum:
- value: HTTP
description: "HTTP"
- value: "HTTPS"
description: "HTTPS"
- value: TCP
description: "TCP"
- value: "UDP"
description: "UDP"
- variable: nodePort
label: "Node Port (Optional)"
description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer"
schema:
type: int
min: 9000
max: 65535
- variable: targetPort
label: "Target Port"
description: "The internal(!) port on the container the Application runs on"
schema:
type: int
default: 10284
- variable: serviceexpert
group: "Networking and Services"
label: "Show Expert Config"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: hostNetwork
group: "Networking and Services"
label: "Host-Networking (Complicated)"
schema:
type: boolean
default: false
# Include{serviceExpert}
# Include{serviceList}
- variable: persistence
label: "Integrated Persistent Storage"
description: "Integrated Persistent Storage"
group: "Storage and Persistence"
schema:
additional_attrs: true
type: dict
attrs:
- variable: config
label: "App Config Storage"
description: "Stores the Application Configuration."
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
# Include{persistenceAdvanced}
# Include{persistenceList}
- variable: ingress
label: ""
group: "Ingress"
schema:
additional_attrs: true
type: dict
attrs:
- variable: main
label: "Main Ingress"
schema:
additional_attrs: true
type: dict
attrs:
# Include{ingressDefault}
# Include{ingressTLS}
# Include{ingressTraefik}
# Include{ingressExpert}
# Include{ingressList}
# Include{security}
- variable: advancedSecurity
label: "Show Advanced Security Settings"
group: "Security and Permissions"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: securityContext
label: "Security Context"
schema:
additional_attrs: true
type: dict
attrs:
- variable: privileged
label: "Privileged mode"
schema:
type: boolean
default: false
- variable: readOnlyRootFilesystem
label: "ReadOnly Root Filesystem"
schema:
type: boolean
default: true
- variable: allowPrivilegeEscalation
label: "Allow Privilege Escalation"
schema:
type: boolean
default: false
- variable: runAsNonRoot
label: "runAsNonRoot"
schema:
type: boolean
default: true
# Include{securityContextAdvanced}
- variable: podSecurityContext
group: "Security and Permissions"
label: "Pod Security Context"
schema:
additional_attrs: true
type: dict
attrs:
- variable: runAsUser
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"
schema:
type: int
default: 568
- variable: fsGroup
label: "fsGroup"
description: "The group that should own ALL storage."
schema:
type: int
default: 568
# Include{podSecurityContextAdvanced}
# Include{resources}
# Include{advanced}
# Include{addons}
@@ -0,0 +1,20 @@
{{/* Define the secrets */}}
{{- define "sheetable.secrets" -}}
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: sheetable-secrets
{{- $sheetableprevious := lookup "v1" "Secret" .Release.Namespace "sheetable-secrets" }}
{{- $api_secret := "" }}
data:
{{- if $sheetableprevious}}
API_SECRET: {{ index $sheetableprevious.data "API_SECRET" }}
{{- else }}
{{- $api_secret := randAlphaNum 32 }}
API_SECRET: {{ $api_secret | b64enc }}
{{- end }}
{{- end -}}
@@ -0,0 +1,7 @@
{{- include "tc.common.loader.init" . }}
{{/* Render secrets for sheetable */}}
{{- include "sheetable.secrets" . }}
{{/* Render the templates */}}
{{ include "tc.common.loader.apply" . }}
+54
View File
@@ -0,0 +1,54 @@
image:
repository: tccr.io/truecharts/sheetable
tag: v0.8@sha256:e6fea8fb883ead7ff3aa5a05738fed17f35a97ad8571c633b1b2addca3e01093
pullPolicy: IfNotPresent
# securityContext:
# readOnlyRootFilesystem: false
# runAsNonRoot: false
# podSecurityContext:
# runAsUser: 0
# runAsGroup: 0
secretEnv:
ADMIN_EMAIL: "email@domain.com"
ADMIN_PASSWORD: "changeme"
env:
PORT: "{{ .Values.service.main.ports.main.port }}"
CONFIG_PATH: "/app/config/"
DB_DRIVER: "postgres"
DB_PORT: "5432"
DB_NAME: "{{ .Values.postgresql.postgresqlDatabase }}"
DB_USER: "{{ .Values.postgresql.postgresqlUsername }}"
DB_HOST:
secretKeyRef:
name: dbcreds
key: plainhost
DB_PASSWORD:
secretKeyRef:
name: dbcreds
key: postgresql-password
API_SECRET:
secretKeyRef:
name: sheetable-secrets
key: API_SECRET
service:
main:
ports:
main:
port: 10284
protocol: HTTP
persistence:
config:
enabled: true
mountPath: "/app/config"
postgresql:
enabled: true
existingSecret: "dbcreds"
postgresqlUsername: sheetable
postgresqlDatabase: sheetable
+30
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
+27
View File
@@ -0,0 +1,27 @@
apiVersion: v2
appVersion: "10.6.2"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 10.4.8
description: Zusam is a free and open-source way to self-host private forums for groups of friends.
home: AUTOGENERATED
icon: https://truecharts.org/img/chart-icons/zusam.png
keywords:
- zusam
- forum
kubeVersion: ">=1.16.0-0"
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: https://truecharts.org
name: zusam
sources:
- https://github.com/zusam/zusam
- https://hub.docker.com/r/zusam/zusam
version: 0.0.1
annotations:
truecharts.org/catagories: |
- chat
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

+479
View File
@@ -0,0 +1,479 @@
# Include{groups}
portals:
open:
protocols:
- "$kubernetes-resource_configmap_portal_protocol"
host:
- "$kubernetes-resource_configmap_portal_host"
ports:
- "$kubernetes-resource_configmap_portal_port"
questions:
- variable: portal
group: "Container Image"
label: "Configure Portal Button"
schema:
type: dict
hidden: true
attrs:
- variable: enabled
label: "Enable"
description: "enable the portal button"
schema:
hidden: true
editable: false
type: boolean
default: true
# Include{global}
- variable: controller
group: "Controller"
label: ""
schema:
additional_attrs: true
type: dict
attrs:
- variable: advanced
label: "Show Advanced Controller Settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: type
description: "Please specify type of workload to deploy"
label: "(Advanced) Controller Type"
schema:
type: string
default: "deployment"
required: true
enum:
- value: "deployment"
description: "Deployment"
- value: "statefulset"
description: "Statefulset"
- value: "daemonset"
description: "Daemonset"
- variable: replicas
description: "Number of desired pod replicas"
label: "Desired Replicas"
schema:
type: int
default: 1
required: true
- variable: strategy
description: "Please specify type of workload to deploy"
label: "(Advanced) Update Strategy"
schema:
type: string
default: "Recreate"
required: true
enum:
- value: "Recreate"
description: "Recreate: Kill existing pods before creating new ones"
- value: "RollingUpdate"
description: "RollingUpdate: Create new pods and then kill old ones"
- value: "OnDelete"
description: "(Legacy) OnDelete: ignore .spec.template changes"
# Include{controllerExpert}
- variable: secretEnv
group: "Container Configuration"
label: "Image Secrets"
schema:
additional_attrs: true
type: dict
attrs:
- variable: INIT_USER
label: "INIT_USER"
description: ""
schema:
type: string
required: true
default: ""
- variable: INIT_GROUP
label: "INIT_GROUP"
description: ""
schema:
type: string
required: true
default: ""
- variable: INIT_PASSWORD
label: "INIT_PASSWORD"
description: ""
schema:
type: string
required: true
private: true
default: ""
- variable: env
group: "Container Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: DOMAIN
label: "DOMAIN"
description: "DOMAIN is used to generate urls"
schema:
type: string
default: ""
- variable: LANG
label: "LANG"
schema:
type: string
required: true
default: "en"
- variable: ALLOW_BOTS
label: "ALLOW_BOTS"
schema:
type: boolean
default: false
- variable: ALLOW_VIDEO_UPLOAD
label: "ALLOW_VIDEO_UPLOAD"
schema:
type: boolean
default: true
- variable: ALLOW_IMAGE_UPLOAD
label: "ALLOW_IMAGE_UPLOAD"
schema:
type: boolean
default: true
- variable: ALLOW_PDF_UPLOAD
label: "ALLOW_PDF_UPLOAD"
schema:
type: boolean
default: true
- variable: ALLOW_AUDIO_UPLOAD
label: "ALLOW_AUDIO_UPLOAD"
schema:
type: boolean
default: true
- variable: IDLE_HOURS
label: "IDLE_HOURS"
description: "IDLE_HOURS indicate hours during which heavy operations can occur"
schema:
type: string
required: true
default: "01-07"
- variable: VIDEO_CONVERSION_THREADS
label: "VIDEO_CONVERSION_THREADS"
description: "Number of threads to use for video conversion"
schema:
type: int
required: true
default: 1
- variable: VIDEO_FORMAT_NOT_CONVERTED
label: "VIDEO_FORMAT_NOT_CONVERTED"
description: "VIDEO_FORMAT_NOT_CONVERTED is a comma (',') separated list"
schema:
type: string
required: true
default: "video/mp4"
- variable: VIDEO_SIZE_NOT_CONVERTED
label: "VIDEO_SIZE_NOT_CONVERTED"
description: "VIDEO_SIZE_NOT_CONVERTED is in Mo"
schema:
type: int
required: true
default: 10
- variable: MAX_TASK_LOCK_DURATION
label: "MAX_TASK_LOCK_DURATION"
description: "This is the time in seconds before it considers the task as stalled and clears the lock"
schema:
type: int
required: true
default: 14400
- variable: ALLOW_EMAIL
label: "ALLOW_EMAIL"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: MAILER_DSN
label: "MAILER_DSN"
schema:
type: string
default: "null://localhost"
- variable: mailer_auth_mode
label: "mailer_auth_mode"
schema:
type: string
default: "cram-md5"
- variable: mailer_username
label: "mailer_username"
schema:
type: string
default: ""
- variable: mailer_password
label: "mailer_password"
schema:
type: string
private: true
default: ""
- variable: mailer_port
label: "mailer_port"
schema:
type: int
default: 587
- variable: mailer_host
label: "mailer_host"
schema:
type: string
default: ""
- variable: mailer_transport
label: "mailer_transport"
schema:
type: string
default: "smtp"
- variable: mailer_encryption
label: "mailer_encryption"
schema:
type: string
default: "tls"
- variable: enable_cron_config
label: "Configure Cron"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: CRON_CONVERT_IMAGES
label: "CRON_CONVERT_IMAGES"
description: "Task execution intervals in seconds"
schema:
type: int
default: 60
- variable: CRON_CONVERT_VIDEO
label: "CRON_CONVERT_VIDEO"
description: "Task execution intervals in seconds"
schema:
type: int
default: 3600
- variable: CRON_NOTIFICATION_EMAILS
label: "CRON_NOTIFICATION_EMAILS"
description: "Task execution intervals in seconds"
schema:
type: int
default: 3600
- variable: CRON_COMPRESS_GIFS
label: "CRON_COMPRESS_GIFS"
description: "Task execution intervals in seconds"
schema:
type: int
default: 3600
- variable: CRON_BOT_ACTIVATE
label: "CRON_BOT_ACTIVATE"
description: "Task execution intervals in seconds"
schema:
type: int
default: 3600
- variable: CRON_CLEAN_CACHE
label: "CRON_CLEAN_CACHE"
description: "Task execution intervals in seconds"
schema:
type: int
default: 86400
- variable: CRON_CLEAN_NOTIFICATIONS
label: "CRON_CLEAN_NOTIFICATIONS"
description: "Task execution intervals in seconds"
schema:
type: int
default: 604800
- variable: CRON_CLEAN_FILES
label: "CRON_CLEAN_FILES"
description: "Task execution intervals in seconds"
schema:
type: int
default: 604800
- variable: CRON_CLEAN_MESSAGES
label: "CRON_CLEAN_MESSAGES"
description: "Task execution intervals in seconds"
schema:
type: int
default: 604800
- variable: CRON_CLEAN_GROUPS
label: "CRON_CLEAN_GROUPS"
description: "Task execution intervals in seconds"
schema:
type: int
default: 2592000
# Include{containerConfig}
- variable: service
group: "Networking and Services"
label: "Configure Service(s)"
schema:
additional_attrs: true
type: dict
attrs:
- variable: main
label: "Main Service"
description: "The Primary service on which the healthcheck runs, often the webUI"
schema:
additional_attrs: true
type: dict
attrs:
# Include{serviceSelector}
- 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: 10283
required: true
- variable: advanced
label: "Show Advanced settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: protocol
label: "Port Type"
schema:
type: string
default: "HTTP"
enum:
- value: HTTP
description: "HTTP"
- value: "HTTPS"
description: "HTTPS"
- value: TCP
description: "TCP"
- value: "UDP"
description: "UDP"
- variable: nodePort
label: "Node Port (Optional)"
description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer"
schema:
type: int
min: 9000
max: 65535
- variable: targetPort
label: "Target Port"
description: "The internal(!) port on the container the Application runs on"
schema:
type: int
default: 8080
- variable: serviceexpert
group: "Networking and Services"
label: "Show Expert Config"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: hostNetwork
group: "Networking and Services"
label: "Host-Networking (Complicated)"
schema:
type: boolean
default: false
# Include{serviceExpert}
# Include{serviceList}
- variable: persistence
label: "Integrated Persistent Storage"
description: "Integrated Persistent Storage"
group: "Storage and Persistence"
schema:
additional_attrs: true
type: dict
attrs:
- variable: data
label: "App Data Storage"
description: "Stores the Application Data."
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
# Include{persistenceAdvanced}
# Include{persistenceList}
- variable: ingress
label: ""
group: "Ingress"
schema:
additional_attrs: true
type: dict
attrs:
- variable: main
label: "Main Ingress"
schema:
additional_attrs: true
type: dict
attrs:
# Include{ingressDefault}
# Include{ingressTLS}
# Include{ingressTraefik}
# Include{ingressExpert}
# Include{ingressList}
# Include{security}
- variable: advancedSecurity
label: "Show Advanced Security Settings"
group: "Security and Permissions"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: securityContext
label: "Security Context"
schema:
additional_attrs: true
type: dict
attrs:
- variable: privileged
label: "Privileged mode"
schema:
type: boolean
default: false
- variable: readOnlyRootFilesystem
label: "ReadOnly Root Filesystem"
schema:
type: boolean
default: false
- variable: allowPrivilegeEscalation
label: "Allow Privilege Escalation"
schema:
type: boolean
default: false
- variable: runAsNonRoot
label: "runAsNonRoot"
schema:
type: boolean
default: false
# Include{securityContextAdvanced}
- variable: podSecurityContext
group: "Security and Permissions"
label: "Pod Security Context"
schema:
additional_attrs: true
type: dict
attrs:
- 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 this App of the user running the application"
schema:
type: int
default: 0
- variable: fsGroup
label: "fsGroup"
description: "The group that should own ALL storage."
schema:
type: int
default: 568
# Include{podSecurityContextAdvanced}
# Include{resources}
# Include{advanced}
# Include{addons}
@@ -0,0 +1 @@
{{ include "tc.common.loader.all" . }}
+63
View File
@@ -0,0 +1,63 @@
image:
repository: tccr.io/truecharts/zusam
tag: v0.5.1@sha256:dbd6ee3107565d6f788027e39539e22d0b76b17eeb7356cb5401d9bad9a495cc
pullPolicy: IfNotPresent
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: false
podSecurityContext:
runAsUser: 0
runAsGroup: 0
secretEnv:
INIT_USER: "email@domain.com"
INIT_GROUP: "zusam"
INIT_PASSWORD: "changeme"
env:
DOMAIN: "localhost"
LANG: "en"
ALLOW_BOTS: false
ALLOW_VIDEO_UPLOAD: true
ALLOW_IMAGE_UPLOAD: true
ALLOW_PDF_UPLOAD: true
ALLOW_AUDIO_UPLOAD: false
IDLE_HOURS: "01-07"
VIDEO_CONVERSION_THREADS: 1
VIDEO_FORMAT_NOT_CONVERTED: "video/mp4"
VIDEO_SIZE_NOT_CONVERTED: "10"
MAX_TASK_LOCK_DURATION: 14400
ALLOW_EMAIL: false
MAILER_DSN: null://localhost
mailer_auth_mode: "cram-md5"
mailer_username: ""
mailer_password: ""
mailer_port: 587
mailer_host: ""
mailer_transport: "smtp"
mailer_encryption: "tls"
CRON_CONVERT_IMAGES: 60
CRON_CONVERT_VIDEO: 3600
CRON_NOTIFICATION_EMAILS: 3600
CRON_COMPRESS_GIFS: 3600
CRON_BOT_ACTIVATE: 3600
CRON_CLEAN_CACHE: 86400
CRON_CLEAN_NOTIFICATIONS: 604800
CRON_CLEAN_FILES: 604800
CRON_CLEAN_MESSAGES: 604800
CRON_CLEAN_GROUPS: 2592000
service:
main:
ports:
main:
port: 10283
targetPort: 8080
protocol: HTTP
persistence:
data:
enabled: true
mountPath: "/zusam/data"