aws-cloud-map-mcs-controller-for-k8s icon indicating copy to clipboard operation
aws-cloud-map-mcs-controller-for-k8s copied to clipboard

Controller cannot delete endpointslices

Open ThomasBoutelier opened this issue 3 years ago • 1 comments

Hi,

I encountered an error after upgrading from 0.2.3 to 0.3.0. I don't know if the error appears on a new installation:

{"level":"error","ts":1664464680.674545,"logger":"controllers.Cloudmap","msg":"error when syncing service","namespace":"bidder-prod","name":"redis-master","error":"endpointslices.discovery.k8s.io is forbidden: User \"system:serviceaccount:cloud-map-mcs-system:cloud-map-mcs-controller-manager\" cannot deletecollection resource \"endpointslices\" in API group \"discovery.k8s.io\" in the namespace \"bidder-prod\"","stacktrace":"github.com/aws/aws-cloud-map-mcs-controller-for-k8s/pkg/controllers/multicluster.(*CloudMapReconciler).reconcileNamespace\n\t/workspac

I added the deletecollection verb to the cloud-map-mcs-manager-role role and the error went away.

ThomasBoutelier avatar Sep 29 '22 15:09 ThomasBoutelier

Would you mind opening a PR?

runakash avatar Sep 29 '22 18:09 runakash