Skip to content

Commit

Permalink
Merge pull request #57172 from liggitt/upgrade-kubelet-binding
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue (batch tested with PRs 57172, 55382, 56147, 56146, 56158). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

gce: split legacy kubelet node role binding and bootstrapper role binding

fixes issue upgrading 1.8->1.9 or downgrading 1.9->1.8

fixes #57047

```release-note
NONE
```
  • Loading branch information
Kubernetes Submit Queue committed Dec 14, 2017
2 parents fceabcd + c4e63cb commit 4260cc9
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@ metadata:
labels:
kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: EnsureExists
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:node
subjects: []
---
# This is required so that new clusters still have bootstrap permissions
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kubelet-bootstrap
labels:
kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: Reconcile
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down

0 comments on commit 4260cc9

Please sign in to comment.