diff --git a/charts/incubator/kaizoku/.helmignore b/charts/incubator/kaizoku/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/kaizoku/.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/kaizoku/CHANGELOG.md b/charts/incubator/kaizoku/CHANGELOG.md new file mode 100644 index 00000000000..825c32f0d03 --- /dev/null +++ b/charts/incubator/kaizoku/CHANGELOG.md @@ -0,0 +1 @@ +# Changelog diff --git a/charts/incubator/kaizoku/Chart.yaml b/charts/incubator/kaizoku/Chart.yaml new file mode 100644 index 00000000000..d2c3e655aaf --- /dev/null +++ b/charts/incubator/kaizoku/Chart.yaml @@ -0,0 +1,31 @@ +apiVersion: v2 +appVersion: "1.6.1" +dependencies: + - name: common + repository: https://library-charts.truecharts.org + version: 14.0.1 + - condition: redis.enabled + name: redis + repository: https://deps.truecharts.org + version: 6.0.66 +deprecated: false +description: Kaizoku is self-hosted manga downloader. +home: https://truecharts.org/charts/incubator/kaizoku +icon: https://truecharts.org/img/hotlink-ok/chart-icons/kaizoku.png +keywords: + - kaizoku +kubeVersion: ">=1.16.0-0" +maintainers: + - email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: kaizoku +sources: + - https://github.com/truecharts/charts/tree/master/charts/incubator/kaizoku + - https://github.com/oae/kaizoku +type: application +version: 0.0.1 +annotations: + truecharts.org/catagories: | + - media + truecharts.org/SCALE-support: "true" diff --git a/charts/incubator/kaizoku/README.md b/charts/incubator/kaizoku/README.md new file mode 100644 index 00000000000..7e59600739c --- /dev/null +++ b/charts/incubator/kaizoku/README.md @@ -0,0 +1 @@ +# README diff --git a/charts/incubator/kaizoku/icon.png b/charts/incubator/kaizoku/icon.png new file mode 100644 index 00000000000..0c268a5aa2d Binary files /dev/null and b/charts/incubator/kaizoku/icon.png differ diff --git a/charts/incubator/kaizoku/questions.yaml b/charts/incubator/kaizoku/questions.yaml new file mode 100644 index 00000000000..d8a6778984c --- /dev/null +++ b/charts/incubator/kaizoku/questions.yaml @@ -0,0 +1,108 @@ +# 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} +# 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: 3000 + required: true +# Include{serviceExpertRoot} +# Include{serviceExpert} +# Include{serviceList} +# Include{persistenceRoot} + - variable: config + label: "App Config Storage" + description: "Stores the Application Configuration." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} + - variable: logs + label: "App Logs Storage" + description: "Stores the Application Logs." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} + - 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/kaizoku/templates/NOTES.txt b/charts/incubator/kaizoku/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/kaizoku/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/kaizoku/templates/_secrets.tpl b/charts/incubator/kaizoku/templates/_secrets.tpl new file mode 100644 index 00000000000..2ab54ac74e4 --- /dev/null +++ b/charts/incubator/kaizoku/templates/_secrets.tpl @@ -0,0 +1,13 @@ +{{/* Define the secrets */}} +{{- define "kaizoku.secret" -}} + +{{- $user := .Values.cnpg.main.user -}} +{{- $password := .Values.cnpg.main.creds.password | trimAll "\"" -}} +{{- $host := .Values.cnpg.main.creds.host | trimAll "\"" -}} +{{- $database := .Values.cnpg.main.database -}} + +kaizoku-secret: + enabled: true + data: + DATABASE_URL: {{ printf "postgresql://%v:%v@%v:5432/%v" $user $password $host $database }} +{{- end -}} diff --git a/charts/incubator/kaizoku/templates/common.yaml b/charts/incubator/kaizoku/templates/common.yaml new file mode 100644 index 00000000000..4e07d957094 --- /dev/null +++ b/charts/incubator/kaizoku/templates/common.yaml @@ -0,0 +1,11 @@ +{{/* Make sure all variables are set properly */}} +{{- include "tc.v1.common.loader.init" . }} + +{{- $secret := include "kaizoku.secret" . | fromYaml -}} +{{- if $secret -}} + {{ $secret := (mustMergeOverwrite .Values.secret $secret) }} + {{- $_ := set .Values "secret" $secret -}} +{{- end -}} + +{{/* Render the templates */}} +{{ include "tc.v1.common.loader.apply" . }} diff --git a/charts/incubator/kaizoku/values.yaml b/charts/incubator/kaizoku/values.yaml new file mode 100644 index 00000000000..78e0c81de7c --- /dev/null +++ b/charts/incubator/kaizoku/values.yaml @@ -0,0 +1,60 @@ +image: + repository: tccr.io/truecharts/kaizoku + pullPolicy: IfNotPresent + tag: v1.6.1@sha256:b3a80cf6ad2d080845a0e4851872f91657198381c587b5393ade77d5bee92b7d + +securityContext: + container: + runAsNonRoot: false + readOnlyRootFilesystem: false + runAsUser: 0 + runAsGroup: 0 + +service: + main: + ports: + main: + protocol: http + port: 3000 + +workload: + main: + podSpec: + containers: + main: + env: + KAIZOKU_PORT: "{{ .Values.service.main.ports.main.port }}" + DATABASE_URL: + secretKeyRef: + name: kaizoku-secret + key: DATABASE_URL + REDIS_HOST: + secretKeyRef: + expandObjectName: false + name: '{{ printf "%s-%s" .Release.Name "rediscreds" }}' + key: url + REDIS_PORT: 6379 + +persistence: + config: + enabled: true + mountPath: "/config" + logs: + enabled: true + mountPath: "/logs" + data: + enabled: true + mountPath: "/data" + +cnpg: + main: + enabled: true + user: kaizoku + database: kaizoku + +redis: + enabled: true + +portal: + open: + enabled: true