Commit 322c6b58 authored by David Eads's avatar David Eads

make printing deterministic

parent 58fd063a
...@@ -2273,7 +2273,8 @@ func describeServiceAccount(serviceAccount *api.ServiceAccount, tokens []api.Sec ...@@ -2273,7 +2273,8 @@ func describeServiceAccount(serviceAccount *api.ServiceAccount, tokens []api.Sec
mountHeader: mountSecretNames, mountHeader: mountSecretNames,
tokenHeader: tokenSecretNames, tokenHeader: tokenSecretNames,
} }
for header, names := range types { for _, header := range sets.StringKeySet(types).List() {
names := types[header]
if len(names) == 0 { if len(names) == 0 {
w.Write(LEVEL_0, "%s\t<none>\n", header) w.Write(LEVEL_0, "%s\t<none>\n", header)
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment