mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 05:14:13 +01:00
The descheduler creates a k8s event for each pod that it evicts. When the code to create events was added the RBAC ClusterRole was not updated to allow creating events. Users would see the below error in the descheduler log when it tried to create an event. "system:serviceaccount:kube-system:descheduler-sa" cannot create resource "events" in API group "" in the namespace "xxxx-production"' (will not retry!)' This change fixes this error by updating the ClusterRole to allow creation of k8s events.