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

Can't run command as part of helm template #336

Open
isihu opened this issue Nov 23, 2023 · 2 comments
Open

Can't run command as part of helm template #336

isihu opened this issue Nov 23, 2023 · 2 comments

Comments

@isihu
Copy link

isihu commented Nov 23, 2023

Hi there,

I would like lovely to use any "values*.yaml" file it finds in the directory.
I tried it with

env:
  - name: LOVELY_HELM_TEMPLATE_PARAMS
    value: $(find . -name "values*.yaml" | sort | awk '{ printf "-f %s ", $0 }')

That doesn't work as the command is split and not executed as part of the helm command.

Another thing I've tried is setting LOVELY_HELM_TEMPLATE_PARAMS variable as part of a preprocessors, but it seems it doesn't get propagated back to the plugin (which makes sense).

One possibility would be to use a different symbol to split the params. Or the params aren't split at escaped whitespaces "\ ". I'd be happy to provide a PR if wanted.

Are there other possibilities to achieve what I want?

Kind regards

@Joibel
Copy link
Contributor

Joibel commented Nov 23, 2023

What's your use case. Why can't you rename your values.yaml to be that? Or are you wanting all of the values*.yamls to be thrown at helm in any order rather than a well known order?

@isihu
Copy link
Author

isihu commented Nov 24, 2023

The latter but ordered alphabetically.

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

No branches or pull requests

2 participants