diff --git a/charts/incubator/metabase/.helmignore b/charts/incubator/metabase/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/metabase/.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/metabase/Chart.yaml b/charts/incubator/metabase/Chart.yaml new file mode 100644 index 00000000000..54e873a4f3c --- /dev/null +++ b/charts/incubator/metabase/Chart.yaml @@ -0,0 +1,27 @@ +apiVersion: v2 +appVersion: "0.47.0" +dependencies: + - name: common + repository: https://library-charts.truecharts.org + version: 14.0.1 +deprecated: false +description: "Business intelligence, dashboards, and data visualization tools" +home: https://truecharts.org/charts/incubator/metabase +icon: https://truecharts.org/img/hotlink-ok/chart-icons/metabase.png +keywords: + - metabase +kubeVersion: ">=1.16.0-0" +maintainers: + - email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: metabase +sources: + - https://github.com/truecharts/charts/tree/master/charts/incubator/metabase + - https://github.com/metabase/metabase +type: application +version: 0.0.1 +annotations: + truecharts.org/catagories: | + - reporting + truecharts.org/SCALE-support: "true" diff --git a/charts/incubator/metabase/README.md b/charts/incubator/metabase/README.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/charts/incubator/metabase/icon.png b/charts/incubator/metabase/icon.png new file mode 100644 index 00000000000..652cdbc8073 Binary files /dev/null and b/charts/incubator/metabase/icon.png differ diff --git a/charts/incubator/metabase/questions.yaml b/charts/incubator/metabase/questions.yaml new file mode 100644 index 00000000000..36b095b2313 --- /dev/null +++ b/charts/incubator/metabase/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: 13030 + required: true +# Include{serviceExpertRoot} +# Include{serviceExpert} +# Include{serviceList} +# Include{persistenceRoot} + - variable: plugins + label: "App Plugin Storage" + description: "Stores the Metabase Plugins." + 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 this App 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/metabase/templates/NOTES.txt b/charts/incubator/metabase/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/metabase/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/metabase/templates/common.yaml b/charts/incubator/metabase/templates/common.yaml new file mode 100644 index 00000000000..3f9dd4f07c3 --- /dev/null +++ b/charts/incubator/metabase/templates/common.yaml @@ -0,0 +1,2 @@ +{{ include "tc.v1.common.loader.all" . }} + diff --git a/charts/incubator/metabase/values.yaml b/charts/incubator/metabase/values.yaml new file mode 100644 index 00000000000..7a5b29feaea --- /dev/null +++ b/charts/incubator/metabase/values.yaml @@ -0,0 +1,61 @@ +image: + repository: tccr.io/truecharts/metabase + pullPolicy: IfNotPresent + tag: v0.47.0@sha256:3f82fcefeb7c41d74fd8fd42bf01e0f15defb3f3dcdbe756820f0e9a286e53c7 + +service: + main: + ports: + main: + protocol: http + targetPort: 3000 + port: 13030 + +persistence: + plugins: + enabled: true + mountPath: "/plugins" + +portal: + open: + enabled: true + +workload: + main: + podSpec: + containers: + main: + probes: + liveness: + type: http + path: / + port: "{{ .Values.service.main.ports.main.targetPort }}" + readiness: + type: http + path: / + port: "{{ .Values.service.main.ports.main.targetPort }}" + startup: + type: tcp + path: / + port: "{{ .Values.service.main.ports.main.targetPort }}" + env: + JAVA_TIMEZONE: "{{ .Values.TZ }}" + MB_DB_TYPE: "postgres" + MB_DB_USER: "{{ .Values.cnpg.main.user }}" + MB_DB_DBNAME: "{{ .Values.cnpg.main.database }}" + MB_DB_PORT: 5432 + MB_DB_HOST: + secretKeyRef: + name: cnpg-main-urls + key: host + MB_DB_PASS: + secretKeyRef: + name: cnpg-main-user + key: password + +# Enabled postgres +cnpg: + main: + enabled: true + user: metabase + database: metabase