https://pulumi.com logo
s

sticky-hydrogen-53391

04/24/2021, 8:22 AM
Hi team, am I missing something or is there no way to pass in helm values in a yaml file, like you would with the helm cli? Ie. Using a remote chart but passing in my own values.yaml via '--values' parameters. It seems convoluted and difficult to manage to have to turn my simple(ish) yaml file into a c# dictionary to override the default values of the chart...
p

proud-pizza-80589

04/24/2021, 8:26 AM
not as far as i know. TBH i take value files, throw them in here https://onlineyamltools.com/convert-yaml-to-json and paste the result in my TS code 😉
seems you can go to c# as well https://jsonformatter.org/yaml-to-csharp
s

sticky-hydrogen-53391

04/24/2021, 9:04 AM
Thanks Roderik, I guess that's going to be some of the key differences between the different languages with pulumi - formatting of such content. If we stick with c# we may need to find or build something more specific (or take the hit and just use c# directly). FYI that online converter for c# made classes rather than a dictionary which is that pulumi expects.
p

proud-pizza-80589

04/24/2021, 10:55 AM
i assume you can also read the yaml file in c# and parse it
b

billowy-army-68599

04/24/2021, 6:19 PM
you can absolutely read in a yaml file from disk, you have all the power of your chosen language
3 Views