Skip to content

Commit

Permalink
feat: added envDict support for environment variables (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
chgl authored Jan 11, 2025
1 parent 3325654 commit ca8787a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/stream-processors/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ keywords:
- kafka
- strimzi kafka operator
- stream processing
version: 1.7.37
version: 1.8.0
dependencies:
- name: common
version: 2.29.0
Expand All @@ -22,5 +22,5 @@ annotations:
artifacthub.io/changes: |-
# When using the list of objects option the valid supported kinds are
# added, changed, deprecated, removed, fixed and security.
- kind: changed
description: "Updated common to 2.29.0"
- kind: added
description: "Added `container.envDict` to allow setting environment variables as a dictionary."
6 changes: 6 additions & 0 deletions charts/stream-processors/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ spec:
{{- if .container.env -}}
{{- toYaml .container.env | default "" | nindent 12 }}
{{- end }}
{{- with .container.envDict }}
{{- range $key, $value := . }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
resources:
{{- toYaml .container.resources | nindent 12 }}
volumeMounts:
Expand Down
3 changes: 3 additions & 0 deletions charts/stream-processors/values-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ processors:
value: fhir-raw
- name: FHIR_URL
value: ""
envDict:
TEST: "test"
OTHER_VALUE: "other"
resources:
requests:
memory: "512Mi"
Expand Down

0 comments on commit ca8787a

Please sign in to comment.