make printing deterministic

pull/6/head
David Eads 2017-10-26 07:56:09 -04:00
parent 58fd063a6c
commit 322c6b5848
1 changed files with 2 additions and 1 deletions

View File

@ -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 {