File tree 4 files changed +7
-10
lines changed
4 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
2
2
name : flagsmith
3
3
description : Flagsmith
4
4
type : application
5
- version : 0.12 .0
5
+ version : 0.13 .0
6
6
appVersion : 2.34.0
7
7
dependencies :
8
8
- name : postgresql
Original file line number Diff line number Diff line change @@ -30,9 +30,10 @@ for information about how to gain web access to the application.
30
30
##### Warning: no secret key set #####
31
31
######################################
32
32
33
- No secret key is set. For production systems, it is strongly
34
- recommended to generate a large random value and set it at
35
- `api.secretKey`. It must be kept secret.
33
+ No secret key is set, a new one will be randomly generated at each
34
+ deployment. For production systems, it is strongly recommended to
35
+ generate a large random value and set it at `api.secretKey`. It must
36
+ be kept secret.
36
37
37
38
See https://docs.flagsmith.com/deployment/locally-api#creating-a-secret-key
38
39
{{- end }}
Original file line number Diff line number Diff line change 8
8
name : {{ template "flagsmith.fullname" . }}
9
9
key : DATABASE_URL
10
10
{{- end }}
11
- {{- if .Values.api.secretKey }}
12
11
- name : DJANGO_SECRET_KEY
13
12
valueFrom :
14
13
secretKeyRef :
15
14
name : {{ template "flagsmith.fullname" . }}
16
15
key : DJANGO_SECRET_KEY
17
- {{- end }}
18
16
{{- if .Values.influxdb2.enabled }}
19
17
- name : INFLUXDB_URL
20
18
value : http://{{- template "flagsmith.influxdb.hostname" . -}}:80
87
85
{{- if and .Values._destructiveTests.enabled .Values._destructiveTests.testToken }}
88
86
- name : E2E_TEST_AUTH_TOKEN
89
87
value : {{ .Values._destructiveTests.testToken | quote }}
90
- {{- end }}
88
+ {{- end }}
Original file line number Diff line number Diff line change @@ -8,6 +8,4 @@ metadata:
8
8
type : Opaque
9
9
data :
10
10
DATABASE_URL : {{ include "flagsmith.api.databaseUrl" . | trim | b64enc | quote }}
11
- {{- with .Values.api.secretKey }}
12
- DJANGO_SECRET_KEY : {{ . | b64enc | quote }}
13
- {{- end }}
11
+ DJANGO_SECRET_KEY : {{ .Values.api.secretKey | default (randAlphaNum 50) | b64enc | quote }}
You can’t perform that action at this time.
0 commit comments