tmc / rules_helm

rules_helm: Bazel rules for managing helm charts
48 stars 28 forks source link

Allow to override a particular value (--set command line) #2

Closed lzaldivarkt closed 5 years ago

lzaldivarkt commented 5 years ago

It would be great to have the option to set an individual value and not relying only on the values file.

tmc commented 5 years ago

@lzaldivarkt I agree -- one way to do this would be to introduce a map argument of keypath to values -- can you think of a better api?

lzaldivarkt commented 5 years ago

That sound good to me.

Also, helm has a specificity order that it would be nice to respect.

https://github.com/helm/helm/blob/master/docs/chart_template_guide/values_files.md

tmc commented 5 years ago

Implemented as of https://github.com/tmc/rules_helm/commit/a5da938887dfa844e4b907152d27df0bd99a1d8f and tagged as 0.3.0. Example updated at https://github.com/tmc/rules_helm_example/blob/master/BUILD#L25