ApplicationSet: template dig function fails on cluster generator values #18096
Unanswered
bwelker-weave
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to create an ApplicationSet in which the template uses
dig
on generator values, so that if an (optional) label exists then an additional value will be added. For example:When I add
some_label
to a cluster's labels, applicationset-controller throws this error:error calling dig: interface conversion: interface {} is map[string]string, not map[string]interface {}
This seems quite similar to the
dig
example mentioned in the application controller go template docs except that I am using it with a cluster generator instead of a list generator.Am I missing something? Is this a bug? Any kind of type conversion I can do to make it work? Other suggestions? Much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions