Open fhqwhgadss opened 1 week ago
The issue is that the extraStageBlocks are first evaluated by Helm, which things you're adding a Helm template directive.
It's ugly, but try this:
logs:
enabled: true
pod_logs:
enabled: true
extraStageBlocks: |
stage.template {
source = "app"
template = "{{ "{{" }} ToLower .Value }}_some_suffix"
}
Or, put the whole think inside a Helm template string:
The issue is that the extraStageBlocks are first evaluated by Helm, which things you're adding a Helm template directive.
It's ugly, but try this:
logs:
enabled: true
pod_logs:
enabled: true
extraStageBlocks: |
stage.template {
source = "app"
template = {{ "{{ ToLower .Value }}_some_suffix" | quote }}
}
Or, put the whole think inside a Helm template string:
The issue is that the extraStageBlocks are first evaluated by Helm, which things you're adding a Helm template directive. It's ugly, but try this: logs: enabled: true pod_logs: enabled: true extraStageBlocks: | stage.template { source = "app" template = {{ "{{ ToLower .Value }}_some_suffix" | quote }} }
That does the trick, thank you!
I find myself unable to use the custom functions in Loki
stage.template
blocks added throughlogs.pod_logs.extraStageBlocks
.Here is my
values.yaml
with one of the example usages ofstage.template
from the docs:When deploying, the config validator fails with the following output: