Add group by default to kubeadm token create

pull/6/head
Joe Beda 2017-10-05 14:42:49 -07:00
parent 3b1b19a1e2
commit e053f56d6b
No known key found for this signature in database
GPG Key ID: 4296898C63A3591D
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ func NewCmdToken(out io.Writer, errW io.Writer) *cobra.Command {
createCmd.Flags().StringSliceVar(&usages,
"usages", kubeadmconstants.DefaultTokenUsages, "The ways in which this token can be used. Valid options: [signing,authentication].")
createCmd.Flags().StringSliceVar(&extraGroups,
"groups", []string{},
"groups", []string{kubeadmconstants.V18NodeBootstrapTokenAuthGroup},
fmt.Sprintf("Extra groups that this token will authenticate as when used for authentication. Must match %q.", bootstrapapi.BootstrapGroupPattern))
createCmd.Flags().StringVar(&description,
"description", "", "A human friendly description of how this token is used.")