File tree Expand file tree Collapse file tree 6 files changed +54
-32
lines changed Expand file tree Collapse file tree 6 files changed +54
-32
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ apiVersion: v2
22name : flagsmith
33description : Flagsmith
44type : application
5- version : 0.17 .0
6- appVersion : 2.42.1
5+ version : 0.18 .0
6+ appVersion : 2.50.2
77dependencies :
88 - name : postgresql
99 repository : https://charts.helm.sh/stable
Original file line number Diff line number Diff line change @@ -6,10 +6,8 @@ frontend:
66 SLACK_TOKEN : " ${SLACK_TOKEN}"
77
88api :
9+ analytics :
10+ enabled : true
911 extraEnv :
10- EMAIL_BACKEND : ' django.core.mail.backends.console.EmailBackend'
12+ EMAIL_BACKEND : " django.core.mail.backends.console.EmailBackend"
1113 FE_E2E_TEST_USER_EMAIL :
[email protected] 12- influxdb2 :
13- # Needed to set this for the tests to not fail. Possibly related to
14- # https://github.com/Flagsmith/flagsmith/issues/340
15- enabled : false
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -24,6 +24,33 @@ for information about how to gain web access to the application.
2424
2525{{- end }}
2626
27+ {{- if not .Values.api.analytics.enabled }}
28+
29+ ######################################################
30+ ##### Analytics capabilities are off! #####
31+ ##### Chart-provisioned InfluxDB is deprecated. #####
32+ ######################################################
33+
34+ If you were provisioning an InfluxDB instance for Flagsmith's
35+ analytics with these charts, your data is safe, but no new data
36+ will be written to it.
37+
38+ *In a subsequent release, chart-provisioned InfluxDB and all related
39+ values under the `influxdb2` key will be removed.*
40+
41+ When you enable analytics by setting `api.analytics.enabled`
42+ to `true`, the following database backend will be used for analytics,
43+ in the order of preference:
44+
45+ 1. External InfluxDB if `influxdbExternal.enabled` set to `true`
46+ 2. External PostgreSQL if `databaseExternal.enabled` set to `true`
47+ 3. Chart-provisioned PostgreSQL
48+
49+ Note that you can use a dedicated PostgreSQL instance by providing the
50+ value for `ANALYTICS_DATABASE_URL` environment variable under the `extraEnvFromSecret`
51+ key.
52+ {{- end}}
53+
2754{{- if not .Values.api.secretKey }}
2855
2956######################################
Original file line number Diff line number Diff line change 1313 secretKeyRef :
1414 name : {{ template "flagsmith.fullname" . }}
1515 key : DJANGO_SECRET_KEY
16- {{- if .Values.influxdb2.enabled }}
17- - name : INFLUXDB_URL
18- value : http://{{- template "flagsmith.influxdb.hostname" . -}}:80
19- - name : INFLUXDB_BUCKET
20- value : {{ .Values.influxdb2.adminUser.bucket }}
21- - name : INFLUXDB_ORG
22- value : {{ .Values.influxdb2.adminUser.organization }}
23- - name : INFLUXDB_TOKEN
24- valueFrom :
25- secretKeyRef :
26- name : {{ template "flagsmith.influxdb.fullname" . }}-auth
27- key : admin-token
28- {{- else if .Values.influxdbExternal.enabled }}
16+ {{- if .Values.api.analytics.enabled }}
17+ {{- if .Values.influxdbExternal.enabled }}
2918- name : INFLUXDB_URL
3019 value : {{ .Values.influxdbExternal.url | required "Must specify a URL for an external InfluxDB" }}
3120- name : INFLUXDB_BUCKET
4231 name : {{ template "flagsmith.influxdb.fullname" . }}-external-auth
4332 key : admin-token
4433 {{- end }}
34+ {{- else }}
35+ - name : USE_POSTGRES_FOR_ANALYTICS
36+ value : ' true'
37+ {{- end }}
38+ {{- else }}
39+ - name : DISABLE_ANALYTICS_FEATURES
40+ value : ' true'
4541{{- end }}
4642- name : DJANGO_ALLOWED_HOSTS
4743 value : ' *'
Original file line number Diff line number Diff line change 44 tag : null # defaults to .Chart.AppVersion
55 imagePullPolicy : IfNotPresent
66 imagePullSecrets : []
7- # Note that if setting this to false, need to set
7+ #
8+ # Note that if `separateApiAndFrontend` is `false`, you'll need to set
89 # api.image.repository to flagsmith/flagsmith (or some other
910 # repository hosting the image with combined frontend and backend)
1011 # and that the image tag exists (for flagsmith/flagsmith, >=2.10.0)
1314 # (unless explicitly switched off), but both are handled by the api
1415 # deployment's pods.
1516 separateApiAndFrontend : true
17+ #
18+ # If `analytics.enabled` flag is `true`, the following database backend
19+ # will be used for analytics, in the order of preference:
20+ # 1. External InfluxDB if `influxdbExternal.enabled` set to `true`
21+ # 2. External PostgreSQL if `databaseExternal.enabled` set to `true`
22+ # 3. Chart-provisioned PostgreSQL
23+ # Note that you can use a dedicated PostgreSQL instance by providing the
24+ # value for `ANALYTICS_DATABASE_URL` environment variable under the
25+ # `extraEnvFromSecret` key.
26+ analytics :
27+ enabled : false
1628 replicacount : 1
1729 deploymentStrategy : null
1830 podAnnotations : {}
You can’t perform that action at this time.
0 commit comments