Skip to content

Commit 0df96b2

Browse files
fix(helm): Quote fileLog.maxFiles env var (#589)
chore: Generated commit to update templated files since the last template run up to stackabletech/operator-templating@4a829c7 Reference-to: stackabletech/operator-templating@4a829c7 (Quote fileLog.maxFiles env var)
1 parent eedeff3 commit 0df96b2

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

Cargo.nix

+10-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy/helm/secret-operator/templates/_telemetry.tpl

+10-10
Original file line numberDiff line numberDiff line change
@@ -7,51 +7,51 @@ Create a list of telemetry related env vars.
77
- name: CONSOLE_LOG_DISABLED
88
value: "true"
99
{{- end }}
10-
{{- if .consoleLog.level }}
10+
{{- if and .consoleLog.enabled .consoleLog.level }}
1111
- name: CONSOLE_LOG_LEVEL
1212
value: {{ .consoleLog.level }}
1313
{{ end }}
14-
{{- if .consoleLog.format }}
14+
{{- if and .consoleLog.enabled .consoleLog.format }}
1515
- name: CONSOLE_LOG_FORMAT
1616
value: {{ .consoleLog.format }}
1717
{{ end }}
1818
{{- if .fileLog.enabled }}
1919
- name: FILE_LOG_DIRECTORY
2020
value: /stackable/logs/{{ include "operator.appname" $ }}
2121
{{- end }}
22-
{{- if .fileLog.level }}
22+
{{- if and .fileLog.enabled .fileLog.level }}
2323
- name: FILE_LOG_LEVEL
2424
value: {{ .fileLog.level }}
2525
{{- end }}
26-
{{- if .fileLog.rotationPeriod }}
26+
{{- if and .fileLog.enabled .fileLog.rotationPeriod }}
2727
- name: FILE_LOG_ROTATION_PERIOD
2828
value: {{ .fileLog.rotationPeriod }}
2929
{{- end }}
30-
{{- if .fileLog.maxFiles }}
30+
{{- if and .fileLog.enabled .fileLog.maxFiles }}
3131
- name: FILE_LOG_MAX_FILES
32-
value: {{ .fileLog.maxFiles }}
32+
value: {{ quote .fileLog.maxFiles }}
3333
{{- end }}
3434
{{- if .otelLogExporter.enabled }}
3535
- name: OTEL_LOG_EXPORTER_ENABLED
3636
value: "true"
3737
{{- end }}
38-
{{- if .otelLogExporter.level }}
38+
{{- if and .otelLogExporter.enabled .otelLogExporter.level }}
3939
- name: OTEL_LOG_EXPORTER_LEVEL
4040
value: {{ .otelLogExporter.level }}
4141
{{- end }}
42-
{{- if .otelLogExporter.endpoint }}
42+
{{- if and .otelLogExporter.enabled .otelLogExporter.endpoint }}
4343
- name: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT
4444
value: {{ .otelLogExporter.endpoint }}
4545
{{- end }}
4646
{{- if .otelTraceExporter.enabled }}
4747
- name: OTEL_TRACE_EXPORTER_ENABLED
4848
value: "true"
4949
{{- end }}
50-
{{- if .otelTraceExporter.level }}
50+
{{- if and .otelTraceExporter.enabled .otelTraceExporter.level }}
5151
- name: OTEL_TRACE_EXPORTER_LEVEL
5252
value: {{ .otelTraceExporter.level }}
5353
{{- end }}
54-
{{- if .otelTraceExporter.endpoint }}
54+
{{- if and .otelTraceExporter.enabled .otelTraceExporter.endpoint }}
5555
- name: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
5656
value: {{ .otelTraceExporter.endpoint }}
5757
{{- end }}

0 commit comments

Comments
 (0)