Rolebindings are not cleaned up after project is deleted.
Issue
- When a binding crosses namespaces is created, the deletion of the project will not remove its binding with other project.
For ex: Create 2 projects : "A" and "B". Then give the project "B" thesystem:image-pullerrole on the project "A". Then delete the project "B". Then inspect rolebindings of project "A", notice that it still has the rolebinding for project A even though it doesn't exist.
# oc policy add-role-to-group system:image-puller system:serviceaccounts:ProjectB -n ProjectA
# oc delete project ProjectB
# oc get rolebinding -n ProjectA
Environment
- OpenShift Container Platform 3.6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
