https://pantsbuild.org/ logo
b

bumpy-arm-17246

03/30/2023, 3:31 PM
Is there a way to just get the populated values file from a
helm_deployment
without the chart being installed?
c

curved-television-6568

03/30/2023, 3:48 PM
cc @witty-family-13337 might have the answer to that
👍 1
w

witty-family-13337

03/30/2023, 3:57 PM
not at this moment, one of the last things I did in my previous job was having a custom goal that would export the final rendered version
is what you mean?
b

bumpy-arm-17246

03/30/2023, 3:58 PM
The rendered version of the values file? - yes
I am quite new to pants. Any chance you give me a brief outline of how implemented the custom goal?
w

witty-family-13337

03/30/2023, 5:17 PM
it isn’t very hard to do, but needs you knowing a bit of the helm plugin API
I may be able to recover that code and make it available in a gist
in the meantime you can try to run the deploy goal but passing —debug and —dry-run command line arguments
that should evaluate the contents of the chart and print them into standard output
here it is, this is the implementation of that custom goal: https://gist.github.com/alonsodomin/5959e3b9688bc6ff6d3e267d2f324bb7 Since you are new to Pants, you want to start with this tutorial first: https://www.pantsbuild.org/docs/create-a-new-goal
b

bumpy-arm-17246

03/31/2023, 9:27 AM
This is absolutely brilliant! Thanks for the direction - I will let you know how I get along!!