Skip to content

Commit

Permalink
Allow setting environment variables in helm chart (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwylde authored Dec 12, 2024
1 parent cde8210 commit 1bd7217
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions k8s/arroyo/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ data:
{{- end }}
resources: {{ .Values.worker.resources | toYaml | nindent 10 }}
service-account-name: {{ .Values.serviceAccount.name | quote }}
env:
{{- toYaml .Values.env | nindent 10 }}
volumes:
{{- if .Values.volumes }}
{{ .Values.volumes | toYaml | nindent 10 }}
Expand Down
4 changes: 4 additions & 0 deletions k8s/arroyo/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ spec:
name: {{ include "arroyo.fullname" . }}-postgresql
key: password
{{- end }}

{{- include "tplvalues.render" (dict "value" .Values.env "context" $) | nindent 10 }}
containers:
- name: arroyo-controller
securityContext:
Expand Down Expand Up @@ -97,6 +99,8 @@ spec:
fieldRef:
fieldPath: metadata.uid

{{- include "tplvalues.render" (dict "value" .Values.env "context" $) | nindent 8 }}

ports:
- containerPort: {{ .Values.controller.service.grpcPort }}
name: grpc
Expand Down
2 changes: 2 additions & 0 deletions k8s/arroyo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,5 @@ volumes: []
volumeMounts: []

existingConfigMap: ""

env: []

0 comments on commit 1bd7217

Please sign in to comment.