diff --git a/charts/incubator/van-dam/.helmignore b/charts/incubator/van-dam/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/van-dam/.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/van-dam/CHANGELOG.md b/charts/incubator/van-dam/CHANGELOG.md new file mode 100644 index 00000000000..825c32f0d03 --- /dev/null +++ b/charts/incubator/van-dam/CHANGELOG.md @@ -0,0 +1 @@ +# Changelog diff --git a/charts/incubator/van-dam/Chart.yaml b/charts/incubator/van-dam/Chart.yaml new file mode 100644 index 00000000000..8a132cd9a10 --- /dev/null +++ b/charts/incubator/van-dam/Chart.yaml @@ -0,0 +1,32 @@ +apiVersion: v2 +appVersion: "0.53.0" +dependencies: + - name: common + repository: https://library-charts.truecharts.org + version: 14.0.3 + - condition: redis.enabled + name: redis + repository: https://deps.truecharts.org + version: 7.0.6 +deprecated: false +description: A Digital Asset Manager (DAM), specifically designed for 3D print files. +home: https://truecharts.org/charts/incubator/van-dam +icon: https://truecharts.org/img/hotlink-ok/chart-icons/van-dam.png +keywords: + - vanDAM + - media +kubeVersion: ">=1.16.0-0" +maintainers: + - email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: van-dam +sources: + - https://github.com/truecharts/charts/tree/master/charts/incubator/van-dam + - https://github.com/Floppy/van_dam +type: application +version: 0.0.1 +annotations: + truecharts.org/catagories: | + - media + truecharts.org/SCALE-support: "true" diff --git a/charts/incubator/van-dam/README.md b/charts/incubator/van-dam/README.md new file mode 100644 index 00000000000..7e59600739c --- /dev/null +++ b/charts/incubator/van-dam/README.md @@ -0,0 +1 @@ +# README diff --git a/charts/incubator/van-dam/icon.png b/charts/incubator/van-dam/icon.png new file mode 100644 index 00000000000..29bef95b79b Binary files /dev/null and b/charts/incubator/van-dam/icon.png differ diff --git a/charts/incubator/van-dam/questions.yaml b/charts/incubator/van-dam/questions.yaml new file mode 100644 index 00000000000..bc9cc0d7547 --- /dev/null +++ b/charts/incubator/van-dam/questions.yaml @@ -0,0 +1,92 @@ +# 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: 3214 + required: true +# Include{serviceExpertRoot} +# Include{serviceExpert} +# Include{serviceList} +# Include{persistenceRoot} + - variable: libraries + label: "App Libraries Storage" + description: "Stores the Application Libraries." + 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/van-dam/templates/NOTES.txt b/charts/incubator/van-dam/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/van-dam/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/van-dam/templates/_secrets.tpl b/charts/incubator/van-dam/templates/_secrets.tpl new file mode 100644 index 00000000000..a9e2f42c731 --- /dev/null +++ b/charts/incubator/van-dam/templates/_secrets.tpl @@ -0,0 +1,13 @@ +{{/* Define the secrets */}} +{{- define "vandam.secrets" -}} +{{- $secretName := (printf "%s-vandam-secrets" (include "tc.v1.common.lib.chart.names.fullname" $)) }} + +{{- $secretKey := randAlphaNum 64 -}} + + {{- with lookup "v1" "Secret" .Release.Namespace $secretName -}} + {{- $secretKey = index .data "SECRET_KEY_BASE" | b64dec -}} + {{- end }} +enabled: true +data: + SECRET_KEY_BASE: {{ $secretKey }} +{{- end -}} diff --git a/charts/incubator/van-dam/templates/common.yaml b/charts/incubator/van-dam/templates/common.yaml new file mode 100644 index 00000000000..5bd0009e7c7 --- /dev/null +++ b/charts/incubator/van-dam/templates/common.yaml @@ -0,0 +1,11 @@ +{{/* Make sure all variables are set properly */}} +{{- include "tc.v1.common.loader.init" . -}} + +{{/* Render secrets for vandam */}} +{{- $secrets := include "vandam.secrets" . | fromYaml -}} +{{- if $secrets -}} + {{- $_ := set .Values.secret "vandam-secrets" $secrets -}} +{{- end -}} + +{{/* Render the templates */}} +{{- include "tc.v1.common.loader.apply" . -}} diff --git a/charts/incubator/van-dam/values.yaml b/charts/incubator/van-dam/values.yaml new file mode 100644 index 00000000000..cfe82a92b98 --- /dev/null +++ b/charts/incubator/van-dam/values.yaml @@ -0,0 +1,57 @@ +image: + repository: tccr.io/truecharts/van-dam + pullPolicy: IfNotPresent + tag: v0.53.0@sha256:2b018bb41c253810ba9d01fe6764dc30a2ff653444007d383f85c6537c6cc358 + +securityContext: + container: + readOnlyRootFilesystem: false + runAsNonRoot: false + runAsUser: 0 + runAsGroup: 0 + +service: + main: + ports: + main: + protocol: http + targetPort: 3214 + port: 3214 + +workload: + main: + podSpec: + containers: + main: + env: + DATABASE_URL: + secretKeyRef: + name: cnpg-main-urls + key: std + REDIS_URL: + secretKeyRef: + expandObjectName: false + name: '{{ printf "%s-%s" .Release.Name "rediscreds" }}' + key: url + SECRET_KEY_BASE: + secretKeyRef: + name: vandam-secrets + key: SECRET_KEY_BASE + +persistence: + libraries: + enabled: true + mountPath: "/libraries" + +cnpg: + main: + enabled: true + user: vandam + database: vandam + +redis: + enabled: true + +portal: + open: + enabled: true