You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of the definition of "rbac.authorization.k8s.io/v1", namespace attribute doesn't exist on RoleRef and Subjects attributes definition. Instead it must be the attribut "apiGroup".
There is a difference between a clusterrolebinding and a rolebinding (as there is for role and clusterrole). A clusterrolebinding is not namespaced, ie it applies to the whole cluster, while a rolebinding is only about a specific namespace. It's very important to keep those a rolebinding and not clusterrolebinding and as such to keep the namespace part, otherwise you will grant permission to the whole cluster 😱
IIRC, namespace in roleref was something in the beta version of the RBAC API rbac.authorization.k8s.io/v1. It may still be accepted for backward compatibility reason.
As part of the definition of "rbac.authorization.k8s.io/v1", namespace attribute doesn't exist on RoleRef and Subjects attributes definition. Instead it must be the attribut "apiGroup".
Example : https://github.com/eclipse-cbi/jiro/blob/master/instances/automotive.mdmbl/target/k8s/role-binding.json
should be :
And apiGroup should have a name: https://github.com/eclipse-cbi/jiro/blob/master/instances/automotive.mdmbl/target/k8s/role.json
The text was updated successfully, but these errors were encountered: