Skip to content

Commit

Permalink
Merge pull request #145 from rufusnufus/main
Browse files Browse the repository at this point in the history
fix: allow using influxDB credentials from existing secret
  • Loading branch information
khvn26 authored Aug 31, 2023
2 parents 1dad947 + f42017e commit 73c148f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/flagsmith/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: flagsmith
description: Flagsmith
type: application
version: 0.22.0
version: 0.22.1
appVersion: 2.57.0
dependencies:
- name: postgresql
Expand Down
5 changes: 5 additions & 0 deletions charts/flagsmith/templates/_api_environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@
- name: INFLUXDB_TOKEN
valueFrom:
secretKeyRef:
{{- if .Values.influxdb2.adminUser.existingSecret }}
name: {{ .Values.influxdb2.adminUser.existingSecret }}
key: admin-token
{{- else }}
name: {{ template "flagsmith.influxdb.fullname" . }}-auth
key: admin-token
{{- end }}
{{- else if .Values.influxdbExternal.enabled }}
- name: INFLUXDB_URL
value: {{ .Values.influxdbExternal.url | required "Must specify a URL for an external InfluxDB" }}
Expand Down
4 changes: 4 additions & 0 deletions charts/flagsmith/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ influxdb2:
## Or fill any of these values to use fixed values.
password: ''
token: ''
## The password and token are obtained from an existing secret. The expected
## keys are `admin-password` and `admin-token`.
## If set, the password and token values above are ignored.
existingSecret: null
persistence:
enabled: false
# storageClass: "-"
Expand Down

0 comments on commit 73c148f

Please sign in to comment.