Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Add extraEnvFrom value to helm chart #1473

Merged
merged 1 commit into from
Jul 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions deploy/helm-chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ helm install --name my-release -f myvalues.yaml .
| `affinity` | PodAffinity and PodAntiAffinity settings | `{}` |
| `extraArgs` | Additional promscale CLI arguments | `[]` |
| `extraEnv` | Additional promscale environment variables | `[]` |
| `extraEnvFrom` | Additional promscale environment variables originating from e.g. secrets or configmaps | `[]` |
| `connection.uri` | DB uri string used for database connection. When not empty it takes priority over other settings in `connection` map. | `""` |
| `connection.user` | Username to connect to TimescaleDB with | `postgres` |
| `connection.password` | The DB password for user specified in `connection.user` | `""` |
Expand Down
3 changes: 3 additions & 0 deletions deploy/helm-chart/templates/deployment-promscale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ spec:
- secretRef:
{{- $secretName := ternary (include "promscale.fullname" .) .Values.connectionSecretName (eq .Values.connectionSecretName "") }}
name: {{ tpl $secretName . }}
{{- if .Values.extraEnvFrom }}
{{ toYaml $.Values.extraEnvFrom | nindent 10 }}
{{- end }}
{{- if .Values.resources }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down
4 changes: 4 additions & 0 deletions deploy/helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ extraArgs: []
# Environment variables that will be passed onto deployment pods
extraEnv: []

# Environment variables that will be passed onto deployment pods
# Allows reference of secrets
extraEnvFrom: []

# OpenTelemetry ingest configuration
openTelemetry:
port: 9202
Expand Down