From 24c652d8917b4fd560c0646a4a56f84ec8176334 Mon Sep 17 00:00:00 2001 From: Vladimir Zahradnik Date: Sun, 21 Jul 2024 15:32:07 +0200 Subject: [PATCH] fix: Incorrect env indentation for bootstrap --- charts/flagsmith/Chart.yaml | 2 +- .../flagsmith/templates/deployment-api.yaml | 26 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/charts/flagsmith/Chart.yaml b/charts/flagsmith/Chart.yaml index 80a5619..465ba89 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.51.0 +version: 0.52.0 appVersion: 2.128.0 dependencies: - name: postgresql diff --git a/charts/flagsmith/templates/deployment-api.yaml b/charts/flagsmith/templates/deployment-api.yaml index d60fc41..d2327d2 100644 --- a/charts/flagsmith/templates/deployment-api.yaml +++ b/charts/flagsmith/templates/deployment-api.yaml @@ -88,18 +88,18 @@ spec: command: ["/bin/sh", "-c"] args: ["python manage.py waitfordb && python manage.py bootstrap"] env: {{ include (print $.Template.BasePath "/_api_environment.yaml") . | nindent 8 }} - {{- if .Values.api.bootstrap.adminEmail }} - - name: ADMIN_EMAIL - value: {{ .Values.api.bootstrap.adminEmail }} - {{- end }} - {{- if .Values.api.bootstrap.organisationName }} - - name: ORGANISATION_NAME - value: {{ .Values.api.bootstrap.organisationName }} - {{- end }} - {{- if .Values.api.bootstrap.projectName }} - - name: PROJECT_NAME - value: {{ .Values.api.bootstrap.projectName }} - {{- end }} + {{- if .Values.api.bootstrap.adminEmail }} + - name: ADMIN_EMAIL + value: {{ .Values.api.bootstrap.adminEmail }} + {{- end }} + {{- if .Values.api.bootstrap.organisationName }} + - name: ORGANISATION_NAME + value: {{ .Values.api.bootstrap.organisationName }} + {{- end }} + {{- if .Values.api.bootstrap.projectName }} + - name: PROJECT_NAME + value: {{ .Values.api.bootstrap.projectName }} + {{- end }} {{- end }} {{- if .Values.api.influxdbSetup.enabled }} - name: influxdb-setup @@ -161,4 +161,4 @@ spec: {{- end }} {{- with .Values.api.extraVolumes }} {{- toYaml . | nindent 6 }} -{{- end }} \ No newline at end of file +{{- end }}