I am new to helm charts and have a problem in getting a key from a list. I am trying to parse the following structure:
operation:map[initiatedBy:map[username:admin] retry:map[] sync:map[resources:[map[group:apps kind:Deployment name:dev-refresh-service namespace:dev-apps]]
I am able to get the value of username
inside the initiatedBy
key using: {{.operation.initiatedBy.username}}
However I am not able to get the value for the name
key from inside the list - resources
I am using the following syntax: {{ operation.sync.resources.name }}
Following is the error I get: can't evaluate field name in type interface {}
Any way around for this?? I am not really sure is this a helm issue or golang issue
Thanks in advance