Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when upgrading to Helm chart 6.14.1 #10293

Open
karl-dpg opened this issue Aug 18, 2023 · 3 comments
Open

Error when upgrading to Helm chart 6.14.1 #10293

karl-dpg opened this issue Aug 18, 2023 · 3 comments
Labels

Comments

@karl-dpg
Copy link

Describe the bug
After upgrading to Helm chart 6.14.1, an error starting showing during the Helm upgrade. Error is:

template: promtail/templates/secret.yaml:18:8: executing "promtail/templates/secret.yaml" at <tpl .Values.config.file .>: error calling tpl: error during tpl function execution for "server:\n  log_level: 
...
: parse error at (promtail/templates/secret.yaml:22): function "ToUpper" not defined

To Reproduce
Setting the config.snippets.pipelineStages to the below:

    config:
      snippets:
        pipelineStages:
          - cri: {}
          - match:
              selector: '{namespace=~"test"}'
              stages:
                - json:
                    expressions:
                      app: app
                      level: level
                      msg: msg
                - template:
                    source: output
                    template: '{{ printf "[%-5s] " .level | ToUpper }}{{ printf "[%-22s] " .app }}'

Expected behavior
Template remains functioning after upgrade.

Environment:

  • Infrastructure: Kubernetes
  • Deployment tool: helm

Screenshots, Promtail config, or terminal output

@LinAnt
Copy link
Contributor

LinAnt commented Aug 23, 2023

Pretty sure ToUpper should just be upper.

@JStickler JStickler added area/helm type/bug Somehing is not working as expected component/promtail labels Aug 24, 2023
@karl-dpg
Copy link
Author

Pretty sure ToUpper should just be upper.

Could you explain why it works with 6.14.0 please?

@Sheikh-Abubaker
Copy link
Contributor

Hi @karl-dpg,
Where do I find this secret.yaml file that you mentioned above

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

No branches or pull requests

4 participants