Skip to content

Grant kube-controllers list/watch on daemonsets during migration#4620

Merged
caseydavenport merged 2 commits intotigera:masterfrom
caseydavenport:casey-migration-rbac-daemonsets
Apr 1, 2026
Merged

Grant kube-controllers list/watch on daemonsets during migration#4620
caseydavenport merged 2 commits intotigera:masterfrom
caseydavenport:casey-migration-rbac-daemonsets

Conversation

@caseydavenport
Copy link
Copy Markdown
Member

The v1->v3 migration controller in kube-controllers sets up a dynamic informer to watch calico-node, so it can detect when the operator has set CALICO_API_GROUP and the rollout completes. This informer needs list/watch on apps/daemonsets, but the migration RBAC ClusterRole didn't include it.

The base kube-controllers ClusterRole already grants get on the calico-node daemonset (scoped via ResourceNames), but list/watch don't work with ResourceNames, so we add them to the migration-specific ClusterRole instead.

@caseydavenport caseydavenport merged commit 10acc78 into tigera:master Apr 1, 2026
5 checks passed
@caseydavenport caseydavenport deleted the casey-migration-rbac-daemonsets branch April 1, 2026 20:54
caseydavenport added a commit to caseydavenport/operator that referenced this pull request Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants