Skip to content

Commit

Permalink
Fix InfluxDB env-vars (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
plumdog authored Apr 22, 2021
1 parent 8a2f3cb commit 506b3b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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.2.2
version: 0.2.3
appVersion: 2.6.0
dependencies:
- name: postgresql
Expand Down
2 changes: 1 addition & 1 deletion charts/flagsmith/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Postgres hostname
Influxdb hostname
*/}}
{{- define "flagsmith.influx.hostname" -}}
{{- printf "%s-%s" .Release.Name .Values.influx.nameOverride -}}.{{ .Release.Namespace }}.svc.cluster.local
{{ template "influxdb.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
{{- end -}}

{{/*
Expand Down
2 changes: 1 addition & 1 deletion charts/flagsmith/templates/deployment-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ spec:
value: postgres://{{.Values.postgresql.postgresqlUsername}}:{{ .Values.postgresql.postgresqlPassword}}@{{ template "flagsmith.postgres.hostname" . }}:5432/{{ .Values.postgresql.postgresqlDatabase}}
{{- if .Values.influxdb.enabled }}
- name: INFLUXDB_URL
value: http://{{- template "flagsmith.influx.hostname" -}}:8086
value: http://{{- template "flagsmith.influx.hostname" . -}}:8086
- name: INFLUXDB_BUCKET
value: {{ .Values.influxdb.adminUser.bucket }}
- name: INFLUXDB_ORG
Expand Down

0 comments on commit 506b3b1

Please sign in to comment.