I am trying to get certain value from merged array that should be looked up in hiera.
%{lookup('profile::aclass::avalue.(.name == "test")')}
The example is showing lookup for value of profile class where avalue is type of Array[Hash[String, Any]]. The expression should lookup for every value where the name of Hash type has value of string "test".
I would like to select only this element of array.
The problem is the value can be everywhere in Array can I cannot use expression profile::aclass::avalue.0
Any ideas how to accomplish this?
Thanks.