Skip to content

Commit

Permalink
Add extraEnv
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Misencik <[email protected]>
  • Loading branch information
SimonMisencik committed Oct 25, 2023
1 parent 48ac42f commit f399a95
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/postgrest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@ helm uninstall [RELEASE_NAME]
| `env.dbSchema` | database schema | `public` |
| `env.dbPool` | database pool | `120` |
| `env.serverPort` | port for postgrest service | `4000` |
| `extraEnv` | Option to specify extra environment variables for main container | |
4 changes: 4 additions & 0 deletions charts/postgrest/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ spec:
value: {{ .Values.env.dbPool | quote }}
- name: PGRST_SERVER_PORT
value: {{ .Values.env.serverPort | quote }}
{{- range $key, $val := .Values.extraEnv }}
- name: {{ $key | quote }}
value: {{ $val | quote }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
2 changes: 2 additions & 0 deletions charts/postgrest/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,5 @@ env:
dbSchema: public
dbPool: 120
serverPort: 4000

extraEnv:

0 comments on commit f399a95

Please sign in to comment.