diff --git a/charts/incubator/tagspaces/.helmignore b/charts/incubator/tagspaces/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/tagspaces/.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/tagspaces/CHANGELOG.md b/charts/incubator/tagspaces/CHANGELOG.md new file mode 100644 index 00000000000..825c32f0d03 --- /dev/null +++ b/charts/incubator/tagspaces/CHANGELOG.md @@ -0,0 +1 @@ +# Changelog diff --git a/charts/incubator/tagspaces/Chart.yaml b/charts/incubator/tagspaces/Chart.yaml new file mode 100644 index 00000000000..e1812eb71d7 --- /dev/null +++ b/charts/incubator/tagspaces/Chart.yaml @@ -0,0 +1,28 @@ +apiVersion: v2 +appVersion: "5.4.4" +dependencies: + - name: common + repository: https://library-charts.truecharts.org + version: 14.0.1 +deprecated: false +description: TagSpaces is an offline, open source, document manager with tagging support. +home: https://truecharts.org/charts/incubator/tagspaces +icon: https://truecharts.org/img/hotlink-ok/chart-icons/tagspaces.png +keywords: + - tagspaces + - documents +kubeVersion: ">=1.16.0-0" +maintainers: + - email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: tagspaces +sources: + - https://github.com/truecharts/charts/tree/master/charts/incubator/tagspaces + - https://github.com/tagspaces/tagspaces +type: application +version: 0.0.1 +annotations: + truecharts.org/catagories: | + - media + truecharts.org/SCALE-support: "true" diff --git a/charts/incubator/tagspaces/README.md b/charts/incubator/tagspaces/README.md new file mode 100644 index 00000000000..7e59600739c --- /dev/null +++ b/charts/incubator/tagspaces/README.md @@ -0,0 +1 @@ +# README diff --git a/charts/incubator/tagspaces/icon.png b/charts/incubator/tagspaces/icon.png new file mode 100644 index 00000000000..5a6ca487b23 Binary files /dev/null and b/charts/incubator/tagspaces/icon.png differ diff --git a/charts/incubator/tagspaces/questions.yaml b/charts/incubator/tagspaces/questions.yaml new file mode 100644 index 00000000000..96fccf10726 --- /dev/null +++ b/charts/incubator/tagspaces/questions.yaml @@ -0,0 +1,83 @@ +# 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: 5000 + required: true +# Include{serviceExpertRoot} +# Include{serviceExpert} +# Include{serviceList} +# 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: 568 + - variable: runAsGroup + label: "runAsGroup" + description: "The groupID of the user running the application" + schema: + type: int + default: 568 +# 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/tagspaces/templates/NOTES.txt b/charts/incubator/tagspaces/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/tagspaces/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/tagspaces/templates/_secrets.tpl b/charts/incubator/tagspaces/templates/_secrets.tpl new file mode 100644 index 00000000000..87755b5be35 --- /dev/null +++ b/charts/incubator/tagspaces/templates/_secrets.tpl @@ -0,0 +1,14 @@ +{{/* Define the secrets */}} +{{- define "tagspaces.secret" -}} +{{- $secretName := (printf "%s-tagspaces-secret" (include "tc.v1.common.lib.chart.names.fullname" $)) -}} + +{{- $key := randAlphaNum 32 -}} +{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) -}} + {{- $key = index .data "KEY" | b64dec -}} +{{- end }} + +tagspaces-secret: + enabled: true + data: + KEY: {{ $key }} +{{- end -}} diff --git a/charts/incubator/tagspaces/templates/common.yaml b/charts/incubator/tagspaces/templates/common.yaml new file mode 100644 index 00000000000..0851914efd8 --- /dev/null +++ b/charts/incubator/tagspaces/templates/common.yaml @@ -0,0 +1,11 @@ +{{/* Make sure all variables are set properly */}} +{{- include "tc.v1.common.loader.init" . }} + +{{- $secret := include "tagspaces.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/tagspaces/values.yaml b/charts/incubator/tagspaces/values.yaml new file mode 100644 index 00000000000..cb88b10792b --- /dev/null +++ b/charts/incubator/tagspaces/values.yaml @@ -0,0 +1,37 @@ +image: + repository: tccr.io/truecharts/tagspaces-lite-web + pullPolicy: IfNotPresent + tag: v5.4.4@sha256:82809b5e1a63c453410c204a6f15f383e33642fe20043fdcd24f4d43721d778d + +securityContext: + container: + readOnlyRootFilesystem: false + +service: + main: + ports: + main: + protocol: http + targetPort: 80 + port: 5000 + +workload: + main: + podSpec: + containers: + main: + env: + KEY: + secretKeyRef: + name: tagspaces-secret + key: KEY + +persistence: + nginx: + enabled: true + type: emptyDir + mountPath: "/var/cache/nginx" + +portal: + open: + enabled: true