Skip to content

Commit

Permalink
Fix: Incorrect environment variables injected when tokenGenerator is …
Browse files Browse the repository at this point in the history
…disabled (#49)

* fix(ingest): manual configuration of globalHashSecret

* fix: incorrect use of `.Values` inside `with` blocks
  • Loading branch information
jsabino authored Oct 4, 2024
1 parent fb5d459 commit c33d730
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/event-log-init/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ spec:
{{- end }}
{{- with .Values.eventLogInit.config.consoleAuthToken }}
- name: CONSOLE_AUTH_TOKEN
value: {{ .Values.eventLogInit.config.consoleAuthToken | quote }}
value: {{ . | quote }}
{{- end }}
{{- end }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion templates/event-log-trim/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ spec:
{{- end }}
{{- with .Values.eventLogTrim.config.consoleAuthToken }}
- name: CONSOLE_AUTH_TOKEN
value: {{ .Values.eventLogTrim.config.consoleAuthToken | quote }}
value: {{ . | quote }}
{{- end }}
{{- end }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion templates/ingest/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ app.kubernetes.io/component: ingest
key: globalHashSecret
{{- end }}
{{- with (.globalHashSecret | default $.Values.config.globalHashSecret) }}
- name: GLOBAL_HASH_SECRET
- name: INGEST_GLOBAL_HASH_SECRET
value: {{ . | quote }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit c33d730

Please sign in to comment.