From 79a6c17b8e521021f7c1b2e587301b5d15547f7b Mon Sep 17 00:00:00 2001 From: Mathieu Cesbron Date: Thu, 15 Feb 2024 14:56:58 +0100 Subject: [PATCH] Add subpath to db --- charts/operator/Chart.yaml | 4 ++-- charts/operator/templates/crds/unagex.com_metabases.yaml | 2 +- config/crd/bases/unagex.com_metabases.yaml | 2 +- internal/controller/database.go | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/charts/operator/Chart.yaml b/charts/operator/Chart.yaml index 7c40231..5d744d8 100644 --- a/charts/operator/Chart.yaml +++ b/charts/operator/Chart.yaml @@ -2,6 +2,6 @@ apiVersion: v2 name: metabase-operator description: Helm chart to deploy [unagex-metabase-operator](https://github.com/unagex/metabase-operator) type: application -version: 0.0.6 -appVersion: 0.0.6 +version: 0.0.7 +appVersion: 0.0.7 home: https://github.com/unagex/metabase-operator diff --git a/charts/operator/templates/crds/unagex.com_metabases.yaml b/charts/operator/templates/crds/unagex.com_metabases.yaml index 684cd8a..ea8aab5 100644 --- a/charts/operator/templates/crds/unagex.com_metabases.yaml +++ b/charts/operator/templates/crds/unagex.com_metabases.yaml @@ -206,7 +206,7 @@ spec: description: MetabaseStatus defines the observed state of Metabase properties: host: - description: Host to connect to the database. + description: Host to connect to the metabase. type: string ready: description: Instance ready to accept connections. diff --git a/config/crd/bases/unagex.com_metabases.yaml b/config/crd/bases/unagex.com_metabases.yaml index 684cd8a..ea8aab5 100644 --- a/config/crd/bases/unagex.com_metabases.yaml +++ b/config/crd/bases/unagex.com_metabases.yaml @@ -206,7 +206,7 @@ spec: description: MetabaseStatus defines the observed state of Metabase properties: host: - description: Host to connect to the database. + description: Host to connect to the metabase. type: string ready: description: Instance ready to accept connections. diff --git a/internal/controller/database.go b/internal/controller/database.go index e233ddd..cc4f4d9 100644 --- a/internal/controller/database.go +++ b/internal/controller/database.go @@ -136,6 +136,7 @@ func (r *MetabaseReconciler) GetStatefulSet(metabase *unagexcomv1.Metabase) *app { Name: metabase.Name + "-storage", MountPath: "/var/lib/postgresql/data", + SubPath: "metabase", }, }, },