Skip to content

Commit

Permalink
[influxdb-enterprise] Enable configuration of environment variables (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
brightstone9 authored Mar 18, 2022
1 parent d534df3 commit 8d49cfb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/influxdb-enterprise/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
version: 0.1.17
version: 0.1.18
appVersion: 1.9.6
engine: gotpl

Expand Down
3 changes: 3 additions & 0 deletions charts/influxdb-enterprise/templates/data-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ spec:
env:
- name: RELEASE_NAME
value: {{ include "influxdb-enterprise.fullname" . }}
{{- if .Values.data.env }}
{{ toYaml .Values.data.env | indent 10 }}
{{- end}}
{{- if .Values.envFromSecret }}
envFrom:
- secretRef:
Expand Down
3 changes: 3 additions & 0 deletions charts/influxdb-enterprise/templates/meta-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ spec:
secretKeyRef:
name: {{ .Values.meta.sharedSecret.secretName }}
key: secret
{{- if .Values.meta.env }}
{{ toYaml .Values.meta.env | indent 12 }}
{{- end}}
{{- if .Values.envFromSecret }}
envFrom:
- secretRef:
Expand Down
7 changes: 6 additions & 1 deletion charts/influxdb-enterprise/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ meta:
# ca: ca.crt
# caSecret: secret-name # only use if different from the above
insecure: true

## Additional data container environment variables e.g.:
## INFLUXDB_HTTP_FLUX_ENABLED: "true"
env: {}

data:
replicas: 1
Expand Down Expand Up @@ -254,3 +256,6 @@ data:
insecure: true
flux:
enabled: true
## Additional data container environment variables e.g.:
## INFLUXDB_HTTP_FLUX_ENABLED: "true"
env: {}

0 comments on commit 8d49cfb

Please sign in to comment.