From f28fcbbb6fb4bf058c98334cd6d7b3841917b628 Mon Sep 17 00:00:00 2001 From: Daniel Loader Date: Fri, 9 Aug 2024 12:38:48 +0100 Subject: [PATCH] feat: add extraObjects (#262) * feat: add extraObjects * chore: bump chart version --------- Co-authored-by: Kim Gustyr --- charts/flagsmith/Chart.yaml | 2 +- charts/flagsmith/templates/extra-objects.yaml | 8 ++++++++ charts/flagsmith/values.yaml | 15 +++++++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 charts/flagsmith/templates/extra-objects.yaml diff --git a/charts/flagsmith/Chart.yaml b/charts/flagsmith/Chart.yaml index b45cf67..01f1d3c 100644 --- a/charts/flagsmith/Chart.yaml +++ b/charts/flagsmith/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: flagsmith description: Flagsmith type: application -version: 0.52.0 +version: 0.53.0 appVersion: 2.134.1 dependencies: - name: postgresql diff --git a/charts/flagsmith/templates/extra-objects.yaml b/charts/flagsmith/templates/extra-objects.yaml new file mode 100644 index 0000000..fc9a76b --- /dev/null +++ b/charts/flagsmith/templates/extra-objects.yaml @@ -0,0 +1,8 @@ +{{ range .Values.extraObjects }} +--- +{{ if typeIs "string" . }} + {{- tpl . $ }} +{{- else }} + {{- tpl (toYaml .) $ }} +{{- end }} +{{ end }} diff --git a/charts/flagsmith/values.yaml b/charts/flagsmith/values.yaml index e99507e..54c7918 100644 --- a/charts/flagsmith/values.yaml +++ b/charts/flagsmith/values.yaml @@ -380,3 +380,18 @@ _destructiveTests: resources: requests: memory: 1Gi + +# -- Array of extra K8s manifests to deploy +## Note: Supports use of custom Helm templates +## Example: Deploying a CloudnativePG Postgres cluster for use with Flagmsith: +extraObjects: [] +# - | +# apiVersion: postgresql.cnpg.io/v1 +# kind: Cluster +# metadata: +# name: flagsmith +# namespace: {{ .Release.Namespace }} +# spec: +# instances: 3 +# storage: +# size: 10Gi \ No newline at end of file