Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

The %{{FORMAT}} syntax breaks the helm chart #1760

Open
LBoraz opened this issue Jan 17, 2023 · 0 comments
Open

The %{{FORMAT}} syntax breaks the helm chart #1760

LBoraz opened this issue Jan 17, 2023 · 0 comments

Comments

@LBoraz
Copy link

LBoraz commented Jan 17, 2023

In the documentation about the sprintf format (https://www.elastic.co/guide/en/logstash/current/event-dependent-configuration.html#sprintf) it is stated that:

Instead of specifying a field name inside the curly braces, use the %{{FORMAT}} syntax where FORMAT is a java time format.

This syntax breaks the helm chart, i believe because the double curly braces are interpreted as some command to be resolved.
If the issue can't be fixed, the documentation should be at least updated with a disclaimer about the %{{FORMAT}} syntax.

See error:
Error: template: logstash/templates/statefulset.yaml:56:29: executing "logstash/templates/statefulset.yaml" at <include (print .Template.BasePath "/configmap-pipeline.yaml") .>: error calling include: template: logstash/templates/configmap-pipeline.yaml:15:3: executing "logstash/templates/configmap-pipeline.yaml" at <tpl $config $>: error calling tpl: error during tpl function execution for [...]

See line 56 in statefulset

pipelinechecksum: {{ include (print .Template.BasePath "/configmap-pipeline.yaml") . | sha256sum | trunc 63 }}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant