Skip to content

Commit 3b54e53

Browse files
committed
Remove InfluxDB provisioning (#126)
1 parent 142e232 commit 3b54e53

File tree

8 files changed

+4
-95
lines changed

8 files changed

+4
-95
lines changed

.github/workflows/release.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
# See https://github.com/Flagsmith/flagsmith-charts/issues/105
3030
run: |
3131
helm repo add stable https://charts.helm.sh/stable
32-
helm repo add influxdb2 https://helm.influxdata.com/
3332
helm repo add kiwigrid https://kiwigrid.github.io
3433
3534
- name: Run chart-releaser

charts/flagsmith/Chart.lock

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ dependencies:
22
- name: postgresql
33
repository: https://charts.helm.sh/stable
44
version: 8.6.4
5-
- name: influxdb2
6-
repository: https://helm.influxdata.com/
7-
version: 2.0.0
85
- name: graphite
96
repository: https://kiwigrid.github.io
107
version: 0.7.3
11-
digest: sha256:08185ea3318322a875104ec4b2daca39b264587868ea3ebc5053c1bf6dd7576f
12-
generated: "2022-10-25T21:11:00.806235474+01:00"
8+
digest: sha256:8bc448a10024c967f8c9f7572ac0971c66d4ae91addfbb1edd3ce84a0a89907f
9+
generated: "2023-04-19T12:21:04.196+01:00"

charts/flagsmith/Chart.yaml

-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ dependencies:
99
repository: https://charts.helm.sh/stable
1010
version: 8.6.4
1111
condition: postgresql.enabled
12-
- name: influxdb2
13-
repository: https://helm.influxdata.com/
14-
# pinned due to issue https://github.com/influxdata/helm-charts/issues/350
15-
version: 2.0.0
16-
condition: influxdb2.enabled
1712
- name: graphite
1813
repository: https://kiwigrid.github.io
1914
version: 0.7.3

charts/flagsmith/ci/e2e-test-values.yaml

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ _destructiveTests:
33

44
frontend:
55
extraEnv:
6-
SLACK_TOKEN: "${SLACK_TOKEN}"
6+
SLACK_TOKEN: '${SLACK_TOKEN}'
77

88
api:
99
extraEnv:
1010
EMAIL_BACKEND: 'django.core.mail.backends.console.EmailBackend'
1111
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

charts/flagsmith/ci/influxdb-test-values.yaml

-11
This file was deleted.

charts/flagsmith/templates/_api_environment.yaml

+1-13
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,7 @@
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.influxdbExternal.enabled }}
2917
- name: INFLUXDB_URL
3018
value: {{ .Values.influxdbExternal.url | required "Must specify a URL for an external InfluxDB" }}
3119
- name: INFLUXDB_BUCKET

charts/flagsmith/templates/_helpers.tpl

-34
Original file line numberDiff line numberDiff line change
@@ -170,38 +170,6 @@ PgBouncer hostname
170170
{{- printf "%s-%s" .Release.Name "pgbouncer" -}}.{{ .Release.Namespace }}.svc.cluster.local
171171
{{- end -}}
172172

173-
{{/*
174-
Expand the name of the chart.
175-
*/}}
176-
{{- define "flagsmith.influxdb.name" -}}
177-
{{- default "influxdb2" .Values.influxdb2.nameOverride | trunc 63 | trimSuffix "-" -}}
178-
{{- end -}}
179-
180-
{{/*
181-
Create a default fully qualified app name.
182-
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
183-
If release name contains chart name it will be used as a full name.
184-
*/}}
185-
{{- define "flagsmith.influxdb.fullname" -}}
186-
{{- if .Values.influxdb2.fullnameOverride -}}
187-
{{- .Values.influxdb2.fullnameOverride | trunc 63 | trimSuffix "-" -}}
188-
{{- else -}}
189-
{{- $name := default "influxdb2" .Values.influxdb2.nameOverride -}}
190-
{{- if contains $name .Release.Name -}}
191-
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
192-
{{- else -}}
193-
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
194-
{{- end -}}
195-
{{- end -}}
196-
{{- end -}}
197-
198-
{{/*
199-
Influxdb hostname
200-
*/}}
201-
{{- define "flagsmith.influxdb.hostname" -}}
202-
{{ template "flagsmith.influxdb.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
203-
{{- end -}}
204-
205173
{{/*
206174
Create a default fully qualified app name.
207175
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
@@ -238,8 +206,6 @@ Frontend environment
238206
value: {{ .Values._destructiveTests.testToken | quote }}
239207
- name: FLAGSMITH_API
240208
value: {{ include "flagsmith.fullname" . }}-api.{{ .Release.Namespace }}:{{ .Values.service.api.port }}/api/v1/
241-
- name: ENABLE_INFLUXDB_FEATURES
242-
value: {{ .Values.influxdb2.enabled | ternary "true" "false" | squote }}
243209
{{- end }}
244210
{{- range $envName, $envValue := .Values.frontend.extraEnv }}
245211
- name: {{ $envName }}

charts/flagsmith/values.yaml

-21
Original file line numberDiff line numberDiff line change
@@ -230,27 +230,6 @@ pgbouncer:
230230
successThreshold: 1
231231
timeoutSeconds: 2
232232

233-
influxdb2:
234-
enabled: false
235-
adminUser:
236-
organization: 'influxdata'
237-
bucket: 'default'
238-
user: 'admin'
239-
retention_policy: '0s'
240-
## Leave empty to generate a random password and token.
241-
## Or fill any of these values to use fixed values.
242-
password: ''
243-
token: ''
244-
persistence:
245-
enabled: false
246-
# storageClass: "-"
247-
# accessMode: ReadWriteOnce
248-
# size: 50Gi
249-
resources: {}
250-
nodeSelector: {}
251-
tolerations: []
252-
affinity: {}
253-
254233
influxdbExternal:
255234
enabled: false
256235
url: null

0 commit comments

Comments
 (0)