mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #89537 from neolit123/1.19-kubeadm-add-get-node-rbac
kubeadm: add missing RBAC for getting nodes on "upgrade apply"
This commit is contained in:
commit
903f1e63f9
@ -70,6 +70,11 @@ func PerformPostUpgradeTasks(client clientset.Interface, cfg *kubeadmapi.InitCon
|
|||||||
errs = append(errs, errors.Wrap(err, "error uploading crisocket"))
|
errs = append(errs, errors.Wrap(err, "error uploading crisocket"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Create RBAC rules that makes the bootstrap tokens able to get nodes
|
||||||
|
if err := nodebootstraptoken.AllowBoostrapTokensToGetNodes(client); err != nil {
|
||||||
|
errs = append(errs, err)
|
||||||
|
}
|
||||||
|
|
||||||
// Create/update RBAC rules that makes the bootstrap tokens able to post CSRs
|
// Create/update RBAC rules that makes the bootstrap tokens able to post CSRs
|
||||||
if err := nodebootstraptoken.AllowBootstrapTokensToPostCSRs(client); err != nil {
|
if err := nodebootstraptoken.AllowBootstrapTokensToPostCSRs(client); err != nil {
|
||||||
errs = append(errs, err)
|
errs = append(errs, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user