diff --git a/.github/ct-install.yaml b/.github/ct-install.yaml index 74f196bb18d..efdce945cc0 100644 --- a/.github/ct-install.yaml +++ b/.github/ct-install.yaml @@ -12,6 +12,7 @@ chart-dirs: excluded-charts: - charts/dependency/subchart - charts/incubator/twingate-connector + - charts/incubator/docassemble - charts/incubator/eco - charts/incubator/midarr - charts/incubator/orbital-sync diff --git a/charts/incubator/docassemble/.helmignore b/charts/incubator/docassemble/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/docassemble/.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/docassemble/CHANGELOG.md b/charts/incubator/docassemble/CHANGELOG.md new file mode 100644 index 00000000000..825c32f0d03 --- /dev/null +++ b/charts/incubator/docassemble/CHANGELOG.md @@ -0,0 +1 @@ +# Changelog diff --git a/charts/incubator/docassemble/Chart.yaml b/charts/incubator/docassemble/Chart.yaml new file mode 100644 index 00000000000..e98c47ea20b --- /dev/null +++ b/charts/incubator/docassemble/Chart.yaml @@ -0,0 +1,28 @@ +apiVersion: v2 +appVersion: "latest" +dependencies: + - name: common + repository: https://library-charts.truecharts.org + version: 14.0.3 +deprecated: false +description: A free, open-source expert system for guided interviews and document assembly. +home: https://truecharts.org/charts/incubator/docassemble +icon: https://truecharts.org/img/hotlink-ok/chart-icons/docassemble.png +keywords: + - docassemble + - documentation +kubeVersion: ">=1.16.0-0" +maintainers: + - email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: docassemble +sources: + - https://github.com/truecharts/charts/tree/master/charts/incubator/docassemble + - https://github.com/jhpyle/docassemble +type: application +version: 0.0.1 +annotations: + truecharts.org/catagories: | + - documentation + truecharts.org/SCALE-support: "true" diff --git a/charts/incubator/docassemble/README.md b/charts/incubator/docassemble/README.md new file mode 100644 index 00000000000..7e59600739c --- /dev/null +++ b/charts/incubator/docassemble/README.md @@ -0,0 +1 @@ +# README diff --git a/charts/incubator/docassemble/icon.png b/charts/incubator/docassemble/icon.png new file mode 100644 index 00000000000..a840aa0b475 Binary files /dev/null and b/charts/incubator/docassemble/icon.png differ diff --git a/charts/incubator/docassemble/questions.yaml b/charts/incubator/docassemble/questions.yaml new file mode 100644 index 00000000000..129d024be4c --- /dev/null +++ b/charts/incubator/docassemble/questions.yaml @@ -0,0 +1,142 @@ +# Include{groups} +portals: + open: +# Include{portalLink} +questions: +# Include{global} +# Include{workload} +# Include{workloadDeployment} + +# Include{replicas1} +# Include{podSpec} +# Include{containerMain} + +# Include{containerBasic} +# Include{containerAdvanced} + + - variable: docassemble + group: App Configuration + label: Docassemble + schema: + additional_attrs: true + type: dict + attrs: + - variable: hostname + label: HostName + schema: + type: string + required: true + default: "http://localhost:10685" + - variable: https + label: https + schema: + type: boolean + default: false + +# 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: 10685 + 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: webapp + label: "App Web App Storage" + description: "Stores the Application Web App." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} + - variable: log + label: "App Log Storage" + description: "Stores the Application Log." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} + - variable: backup + label: "App Backup Storage" + description: "Stores the Application Backup." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} + - variable: files + label: "App Files Storage" + description: "Stores the Application Files." + 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: 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/docassemble/templates/NOTES.txt b/charts/incubator/docassemble/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/docassemble/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/docassemble/templates/common.yaml b/charts/incubator/docassemble/templates/common.yaml new file mode 100644 index 00000000000..b51394e00a4 --- /dev/null +++ b/charts/incubator/docassemble/templates/common.yaml @@ -0,0 +1 @@ +{{ include "tc.v1.common.loader.all" . }} diff --git a/charts/incubator/docassemble/values.yaml b/charts/incubator/docassemble/values.yaml new file mode 100644 index 00000000000..1780ab282b1 --- /dev/null +++ b/charts/incubator/docassemble/values.yaml @@ -0,0 +1,73 @@ +image: + repository: tccr.io/truecharts/docassemble + pullPolicy: IfNotPresent + tag: latest@sha256:665fbaf35a7548e0418947a8d1e193416fffd0a8a738cb2603310137a6fd16d1 + +service: + main: + ports: + main: + protocol: http + port: 10685 + +docassemble: + hostname: docassemble.example.com + https: false + +workload: + main: + podSpec: + containers: + main: + probes: + liveness: + path: "/health_check" + type: http + readiness: + path: "/health_check" + type: http + startup: + path: "/health_check" + type: http + env: + DBNAME: "{{ .Values.cnpg.main.database }}" + DBUSER: "{{ .Values.cnpg.main.user }}" + DBPASSWORD: + secretKeyRef: + name: cnpg-main-user + key: password + DBHOST: + secretKeyRef: + name: cnpg-main-urls + key: host + DALISTENPORT: "{{ .Values.service.main.ports.main.port }}" + USEHTTPS: "{{ .Values.docassemble.https }}" + DAHOSTNAME: "{{ .Values.docassemble.hostname }}" + +persistence: + config: + enabled: true + mountPath: "/usr/share/docassemble/config" + webapp: + enabled: true + mountPath: "/usr/share/docassemble/webapp" + log: + enabled: true + mountPath: "/usr/share/docassemble/log" + backup: + enabled: true + mountPath: "/usr/share/docassemble/backup" + files: + enabled: true + mountPath: "/usr/share/docassemble/files" + +# Enabled postgres +cnpg: + main: + enabled: true + user: docassemble + database: docassemble + +portal: + open: + enabled: true