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

Runs helm repeatedly for the same inputs #906

Closed
iainlane opened this issue Aug 9, 2023 · 2 comments · Fixed by #1016
Closed

Runs helm repeatedly for the same inputs #906

iainlane opened this issue Aug 9, 2023 · 2 comments · Fixed by #1016
Assignees

Comments

@iainlane
Copy link
Member

iainlane commented Aug 9, 2023

I was just testing an export of all the environments in our repo and I noticed that when we have inline environments which end up using Helm charts, we run the Helm template separately for each environment.

Perhaps template runs (for the same Values) could be cached.

{"level":"debug","argv":["template","somechart","somechart","--values","-","--include-crds","--namespace=somechart"],"time":"2023-08-09T12:05:18+01:00","message":"running helm"}
{"level":"debug","argv":["template","somechart","somechart","--values","-","--include-crds","--namespace=somechart"],"time":"2023-08-09T12:05:20+01:00","message":"running helm"}
{"level":"debug","argv":["template","somechart","somechart","--values","-","--include-crds","--namespace=somechart"],"time":"2023-08-09T12:05:21+01:00","message":"running helm"}
{"level":"debug","argv":["template","somechart","somechart","--values","-","--include-crds","--namespace=somechart"],"time":"2023-08-09T12:05:23+01:00","message":"running helm"}
{"level":"debug","argv":["template","somechart","somechart","--values","-","--include-crds","--namespace=somechart"],"time":"2023-08-09T12:05:24+01:00","message":"running helm"}
{"level":"debug","argv":["template","somechart","somechart","--values","-","--include-crds","--namespace=somechart"],"time":"2023-08-09T12:05:26+01:00","message":"running helm"}
@julienduchesne
Copy link
Member

Values could be different since they are piped

@iainlane
Copy link
Member Author

iainlane commented Aug 9, 2023

Yes, they're piped by us, the values are known on Tanka's side:

data, err := yaml.Marshal(opts.Values)
if err != nil {
return nil, errors.Wrap(err, "Converting Helm values to YAML")
}
cmd.Stdin = bytes.NewReader(data)

(I have checked in this case and they are the same)

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

Successfully merging a pull request may close this issue.

3 participants