Commit acaa1108 authored by rongzhang's avatar rongzhang

Fix kubeadm token list

Adjust the output of the kubeadm token list.
parent 8e329f1c
...@@ -341,7 +341,7 @@ func humanReadableBootstrapToken(token *kubeadmapi.BootstrapToken) string { ...@@ -341,7 +341,7 @@ func humanReadableBootstrapToken(token *kubeadmapi.BootstrapToken) string {
groupsString = "<none>" groupsString = "<none>"
} }
return fmt.Sprintf("%s\t%s\t%s\t%s\t%s\t%s\n", token.Token.String(), ttl, expires, usagesString, description, groupsString) return fmt.Sprintf("%s\t%s\t%s\t%s\t%s\t%s", token.Token.String(), ttl, expires, usagesString, description, groupsString)
} }
func getClientset(file string, dryRun bool) (clientset.Interface, error) { func getClientset(file string, dryRun bool) (clientset.Interface, error) {
......
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