kubeadm: Set the new BT auth group on the init token

pull/6/head
Lucas Käldström 2017-09-07 15:27:58 +03:00
parent ea017719e5
commit 74954fdae9
No known key found for this signature in database
GPG Key ID: 3FA3783D77751514
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ func (i *Init) Run(out io.Writer) error {
// Create the default node bootstrap token // Create the default node bootstrap token
tokenDescription := "The default bootstrap token generated by 'kubeadm init'." tokenDescription := "The default bootstrap token generated by 'kubeadm init'."
if err := nodebootstraptokenphase.UpdateOrCreateToken(client, i.cfg.Token, false, i.cfg.TokenTTL.Duration, kubeadmconstants.DefaultTokenUsages, []string{}, tokenDescription); err != nil { if err := nodebootstraptokenphase.UpdateOrCreateToken(client, i.cfg.Token, false, i.cfg.TokenTTL.Duration, kubeadmconstants.DefaultTokenUsages, []string{kubeadmconstants.V18NodeBootstrapTokenAuthGroup}, tokenDescription); err != nil {
return err return err
} }
// Create RBAC rules that makes the bootstrap tokens able to post CSRs // Create RBAC rules that makes the bootstrap tokens able to post CSRs