Skip to content

Commit f169d9d

Browse files
authored
fix: add missing flag arg
1 parent 6017fbc commit f169d9d

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

traefik/templates/_podtemplate.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,9 @@
416416
- "--experimental.fastProxy.debug"
417417
{{- end }}
418418
{{- end }}
419+
{{- if .Values.experimental.otlpLogs }}
420+
- "--experimental.otlpLogs=true"
421+
{{- end }}
419422
{{- range $pluginName, $plugin := .Values.experimental.plugins }}
420423
{{- if or (ne (typeOf $plugin) "map[string]interface {}") (not (hasKey $plugin "moduleName")) (not (hasKey $plugin "version")) }}
421424
{{- fail (printf "ERROR: plugin %s is missing moduleName/version keys !" $pluginName) }}

traefik/tests/traefik-config_test.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,3 +1139,16 @@ tests:
11391139
- contains:
11401140
path: spec.template.spec.containers[0].args
11411141
content: "--hub.pluginregistry.sources.plugin2.github.token=ghp_xxxxxxxxxxxxxxxxxxxx"
1142+
- it: should enable experimental otlpLogs when specified
1143+
set:
1144+
experimental:
1145+
otlpLogs: true
1146+
asserts:
1147+
- contains:
1148+
path: spec.template.spec.containers[0].args
1149+
content: "--experimental.otlpLogs=true"
1150+
- it: should not enable experimental otlpLogs by default
1151+
asserts:
1152+
- notContains:
1153+
path: spec.template.spec.containers[0].args
1154+
content: "--experimental.otlpLogs=true"

0 commit comments

Comments
 (0)