Helm escaping
This commit is contained in:
parent
3acf50b1f2
commit
a27f516d0a
|
|
@ -49,6 +49,6 @@ spec:
|
||||||
expression: '^\[.*\] \[(?P<level>\w+)\]\s+(?P<message>.*)$'
|
expression: '^\[.*\] \[(?P<level>\w+)\]\s+(?P<message>.*)$'
|
||||||
- template:
|
- template:
|
||||||
source: level
|
source: level
|
||||||
template: '{{ if eq .Value "LOG" }}info{{ else if eq .Value "WARN" }}warn{{ else if eq .Value "ERROR" }}error{{ else }}{{ .Value | lower }}{{ end }}'
|
template: '{{ "{{" }} if eq .Value "LOG" {{ "}}" }}info{{ "{{" }} else if eq .Value "WARN" {{ "}}" }}warn{{ "{{" }} else if eq .Value "ERROR" {{ "}}" }}error{{ "{{" }} else {{ "}}" }}{{ "{{" }} .Value | lower {{ "}}" }}{{ "{{" }} end {{ "}}" }}'
|
||||||
- labels:
|
- labels:
|
||||||
level: level
|
level: level
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue