Hi, I’m trying to render some content from a YAML data file.
I need to process every occurrence of the “repository” key, but it’s not always at the same level.
The YAML looks something like this:
spec: name1: key1: enabled: true image: repository: example.com/1 key2: repository: example.com/2 name2: repository: example.com/3 name3: key3: key4: repository: example.com/4
Is there an easy way to range through all “repository” values, without having to know the exact path to them? (I hope it can be done with a well-aimed “range where” expression, but couldn’t get it right.)