Is there a tool to flatten yaml structure like this:
foo: bar: baz: true into this:
foo.bar.baz = true not sure what is this syntax name
context: I need this for hcl, setting a lot of values like this:
set { name = "foo.bar.baz" value = false } this is for helm-provider in terraform, cannot use directly use json or yaml, have to set properties that you want to change one by one (i need to disable lots of stuff to check why it's not working).
set { name = "foo.bar.baz", value = false }on hcl file XDvalues = []instead ofset {}. See the doc here registry.terraform.io/providers/hashicorp/helm/latest/docs/…valuesmeans you do not need to convert the yaml to a different format.