Skip to content

🌱 Add kubeadm cluster role (minimal backport of kubernetes-sigs#13664) - #25

Closed
thunderboltsid wants to merge 1 commit into
release-1.10.10from
backport-13664-minimal
Closed

thunderboltsid wants to merge 1 commit into
release-1.10.10from
backport-13664-minimal

Conversation

@thunderboltsid

Copy link
Copy Markdown

Straight cherry-pick of kubernetes-sigs/cluster-api@3b6c4b3fd (the release-1.11 backport of kubernetes-sigs#13664) onto release-1.10.10: AllowClusterAdminPermissions becomes EnsureKubeadmPermissions, which also creates the kubeadm:apiserver-kubelet-client ClusterRoleBinding for K8s < 1.38.

Opened as an alternative to #24 for comparison. The difference is that the conflicts are resolved by keeping what release-1.10 still has: ReconcileKubeletRBACRole, ReconcileKubeletRBACBinding and AllowBootstrapTokensToGetNodes stay wired into upgradeControlPlane and reconcile, and the existing tests in workload_cluster_rbac_test.go are kept. Those calls only disappeared upstream in kubernetes-sigs#12303, a breaking change that is in release-1.11+ but not in this branch.

Testing

go build ./..., gofmt -l, and go test ./controlplane/kubeadm/internal/... (with envtest assets) pass locally, including the four pre-existing RBAC tests and the new TestEnsureKubeadmPermissions.

Minimal backport of kubernetes-sigs#13664 to release-1.10.

(cherry picked from commit 3b6c4b3)

Conflicts resolved by keeping the kubelet/bootstrap-token RBAC
reconciliation that release-1.10 still performs; upstream had already
removed it in kubernetes-sigs#12303, which is not part of this branch.
@thunderboltsid
thunderboltsid deleted the backport-13664-minimal branch August 14, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants