#helmfile (2024-05)

https://github.com/helmfile/helmfile

Questions and discussion around helmfile https://github.com/roboll/helmfile and https://github.com/cloudposse/helmfiles

Archive: https://archive.sweetops.com/helmfile/

2024-05-04

Jim avatar

@yxxhero Would I be able to collaborate with you here on my pull request to Helmfile rather than posting comments into the PR itself?

Jim avatar

The pull request in question is https://github.com/helmfile/helmfile/pull/1494

#1494 Add helmfile template --show-only

Add a --show-only parameter to the helmfile template command to pass on to the helm template command.

Jim avatar

You’ve asked me to write some tests. As stated in my early comment on the pull request, I am not a golang programmer. I’ve spend half of the day today (Sat) trying to learn enough go to be able to perform your request, but I still don’t have enough knowledge to know how to proceed.

Jim avatar

Do I just add something like this to the TestTemplate function in pkg/app/app_template_test.go

Jim avatar

OR am I supposed to do something in test/e2e/template/helmfile/tmpl_test.go instead? (or as well?)

Jim avatar

OR am I supposed to do something under test/integration/test-cases/ ?

Jim avatar

Also a question on my change itself. Did I need to add the showOnly stuff to the HelmSpec and ReleaseSpec structs in pkg/state/state.go? The HelmSpec struct is for the helmDefault values right? And the --show-only option for helmfile template wouldn’t be something you’d likely want to set in the helmDefault section I suspect. And the ReleaseSpec struct if for the release: section of helmfile.yaml right? So probably also an area where you wouldn’t set the new parameter. I suspect I should remove it from those places?

I also don’t know if the changes I did in pkg/app/app_test.go were necessary or not?

Jim avatar

And if I don’t need those vars in the structs, then I guess my change to pkg/state/helmx.go simply becomes the following instead?

yxxhero avatar
yxxhero

I will help you. Waiting for my commit. Study with each other. Thanks so much.

Jim avatar

Thanks.

    keyboard_arrow_up