feat(metabase): add Starburst(Trino) driver
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
set fallback := true
|
||||
|
||||
export METABASE_NAMESPACE := env("METABASE_NAMESPACE", "metabase")
|
||||
export METABASE_CHART_VERSION := env("METABASE_CHART_VERSION", "2.22.0")
|
||||
export METABASE_CHART_VERSION := env("METABASE_CHART_VERSION", "2.22.2")
|
||||
export METABASE_HOST := env("METABASE_HOST", "")
|
||||
export EXTERNAL_SECRETS_NAMESPACE := env("EXTERNAL_SECRETS_NAMESPACE", "external-secrets")
|
||||
export K8S_VAULT_NAMESPACE := env("K8S_VAULT_NAMESPACE", "vault")
|
||||
@@ -83,7 +83,6 @@ delete-database-secret:
|
||||
install:
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
export METABASE_HOST=${METABASE_HOST:-}
|
||||
while [ -z "${METABASE_HOST}" ]; do
|
||||
METABASE_HOST=$(
|
||||
gum input --prompt="Metabase host (FQDN): " --width=100 \
|
||||
@@ -103,6 +102,23 @@ install:
|
||||
--version ${METABASE_CHART_VERSION} -n ${METABASE_NAMESPACE} --wait \
|
||||
-f metabase-values.yaml
|
||||
|
||||
# Upgrade Metabase
|
||||
upgrade:
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
while [ -z "${METABASE_HOST}" ]; do
|
||||
METABASE_HOST=$(
|
||||
gum input --prompt="Metabase host (FQDN): " --width=100 \
|
||||
--placeholder="e.g., metabase.example.com"
|
||||
)
|
||||
done
|
||||
echo "Upgrading Metabase..."
|
||||
gomplate -f metabase-values.gomplate.yaml -o metabase-values.yaml
|
||||
helm upgrade metabase pmint93/metabase \
|
||||
--version ${METABASE_CHART_VERSION} -n ${METABASE_NAMESPACE} --wait \
|
||||
-f metabase-values.yaml
|
||||
echo "Metabase upgraded successfully"
|
||||
|
||||
# Uninstall Metabase
|
||||
uninstall delete-db='true':
|
||||
#!/bin/bash
|
||||
|
||||
@@ -32,6 +32,31 @@ session:
|
||||
existingSecret: metabase-config
|
||||
existingSecretKey: session
|
||||
|
||||
# Trino driver plugin configuration
|
||||
extraInitContainers:
|
||||
- name: download-trino-driver
|
||||
image: curlimages/curl:8.5.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
volumeMounts:
|
||||
- name: plugins
|
||||
mountPath: /plugins
|
||||
workingDir: /plugins
|
||||
command:
|
||||
- /bin/sh
|
||||
- -ec
|
||||
- |
|
||||
curl -Lso /plugins/starburst.metabase-driver.jar \
|
||||
https://github.com/starburstdata/metabase-driver/releases/download/6.1.0/starburst-6.1.0.metabase-driver.jar
|
||||
|
||||
extraVolumeMounts:
|
||||
- name: plugins
|
||||
mountPath: /plugins
|
||||
readOnly: false
|
||||
|
||||
extraVolumes:
|
||||
- name: plugins
|
||||
emptyDir: {}
|
||||
|
||||
# Basic configuration
|
||||
extraEnv:
|
||||
- name: MB_APPLICATION_NAME
|
||||
|
||||
Reference in New Issue
Block a user