Skip to content

fix(helm): Quote fileLog.maxFiles env var #297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2025
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
8 changes: 4 additions & 4 deletions Cargo.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions deploy/helm/listener-operator/templates/_telemetry.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,51 +7,51 @@ Create a list of telemetry related env vars.
- name: CONSOLE_LOG_DISABLED
value: "true"
{{- end }}
{{- if .consoleLog.level }}
{{- if and .consoleLog.enabled .consoleLog.level }}
- name: CONSOLE_LOG_LEVEL
value: {{ .consoleLog.level }}
{{ end }}
{{- if .consoleLog.format }}
{{- if and .consoleLog.enabled .consoleLog.format }}
- name: CONSOLE_LOG_FORMAT
value: {{ .consoleLog.format }}
{{ end }}
{{- if .fileLog.enabled }}
- name: FILE_LOG_DIRECTORY
value: /stackable/logs/{{ include "operator.appname" $ }}
{{- end }}
{{- if .fileLog.level }}
{{- if and .fileLog.enabled .fileLog.level }}
- name: FILE_LOG_LEVEL
value: {{ .fileLog.level }}
{{- end }}
{{- if .fileLog.rotationPeriod }}
{{- if and .fileLog.enabled .fileLog.rotationPeriod }}
- name: FILE_LOG_ROTATION_PERIOD
value: {{ .fileLog.rotationPeriod }}
{{- end }}
{{- if .fileLog.maxFiles }}
{{- if and .fileLog.enabled .fileLog.maxFiles }}
- name: FILE_LOG_MAX_FILES
value: {{ .fileLog.maxFiles }}
value: {{ quote .fileLog.maxFiles }}
{{- end }}
{{- if .otelLogExporter.enabled }}
- name: OTEL_LOG_EXPORTER_ENABLED
value: "true"
{{- end }}
{{- if .otelLogExporter.level }}
{{- if and .otelLogExporter.enabled .otelLogExporter.level }}
- name: OTEL_LOG_EXPORTER_LEVEL
value: {{ .otelLogExporter.level }}
{{- end }}
{{- if .otelLogExporter.endpoint }}
{{- if and .otelLogExporter.enabled .otelLogExporter.endpoint }}
- name: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT
value: {{ .otelLogExporter.endpoint }}
{{- end }}
{{- if .otelTraceExporter.enabled }}
- name: OTEL_TRACE_EXPORTER_ENABLED
value: "true"
{{- end }}
{{- if .otelTraceExporter.level }}
{{- if and .otelTraceExporter.enabled .otelTraceExporter.level }}
- name: OTEL_TRACE_EXPORTER_LEVEL
value: {{ .otelTraceExporter.level }}
{{- end }}
{{- if .otelTraceExporter.endpoint }}
{{- if and .otelTraceExporter.enabled .otelTraceExporter.endpoint }}
- name: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
value: {{ .otelTraceExporter.endpoint }}
{{- end }}
Expand Down