Closed
Description
Sometimes it is required to have a set of something. For example, I want to get a list of unique networks.
{{ range $network := set $containers "Networks" }}
{{ $network.Name }}
{{ end }}
In this example, the $containers
is a list of docker container created by groupByMulti $ "Labels.lb" ","
.
The interface could be: set $containers $fieldPath
(cf. groupBy
)
Is it possible to provide a function like this or have I overlooked an existing function that could handle this use case?
Metadata
Metadata
Assignees
Labels
No labels