From 1d86894c119961a6b0a950cd64badebf1fb8b135 Mon Sep 17 00:00:00 2001 From: Kim Gustyr Date: Fri, 23 Aug 2024 14:39:57 +0100 Subject: [PATCH] fix: Set `ALLOW_ADMIN_INITIATION_VIA_CLI` when `bootstrap.enabled` is `true` (#239) --- charts/flagsmith/Chart.yaml | 2 +- charts/flagsmith/templates/deployment-api.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/flagsmith/Chart.yaml b/charts/flagsmith/Chart.yaml index f700236..4eb8186 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.55.0 +version: 0.56.0 appVersion: 2.137.0 dependencies: - name: postgresql diff --git a/charts/flagsmith/templates/deployment-api.yaml b/charts/flagsmith/templates/deployment-api.yaml index 778a00b..a75f799 100644 --- a/charts/flagsmith/templates/deployment-api.yaml +++ b/charts/flagsmith/templates/deployment-api.yaml @@ -88,6 +88,8 @@ spec: command: ["/bin/sh", "-c"] args: ["python manage.py waitfordb && python manage.py bootstrap"] env: {{ include (print $.Template.BasePath "/_api_environment.yaml") . | nindent 8 }} + - name: ALLOW_ADMIN_INITIATION_VIA_CLI + value: 'true' {{- if .Values.api.bootstrap.adminEmail }} - name: ADMIN_EMAIL value: {{ .Values.api.bootstrap.adminEmail }}