ClusterRoleBinding (v1)

ClusterRoleBinding (v1)

ClusterRoleBinding

rbac.v1.ClusterRoleBinding

ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.

Resource metadata

Specs

  • roleRef (RoleRef)
    RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.

    • roleRef.apiGroup (string)
      APIGroup is the group for the resource being referenced

    • roleRef.kind (string)
      Kind is the type of resource being referenced

    • roleRef.name (string)
      Name is the name of resource being referenced

  • subjects ([]Subject)
    Subjects holds references to the objects the role applies to.

    • subjects.apiGroup (string)
      APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects.

    • subjects.kind (string)
      Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error.

    • subjects.name (string)
      Name of the object being referenced.

    • subjects.namespace (string)
      Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error.

ClusterRoleBindingList

rbac.v1.ClusterRoleBindingList

ClusterRoleBindingList is a collection of ClusterRoleBindings