Skip to content

Commit

Permalink
okra list-awstargetgroups should print labels
Browse files Browse the repository at this point in the history
  • Loading branch information
mumoshu committed Nov 23, 2021
1 parent a7be128 commit f0cf6da
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/okra/okra.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,12 @@ func Run() error {
}

for _, c := range clusters {
fmt.Fprintf(os.Stdout, "%v\n", c.Name)
var kvs []string
for k, v := range c.Labels {
kvs = append(kvs, k+"="+v)
}
labels := strings.Join(kvs, ",")
fmt.Fprintf(os.Stdout, "%v\t%s\n", c.Name, labels)
}

return nil
Expand Down

0 comments on commit f0cf6da

Please sign in to comment.