V1ClusterRoleBinding

July 22, 2026 ยท View on GitHub

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

Properties

NameTypeDescriptionNotes
api_versionstrAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources[optional]
kindstrKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds[optional]
metadataV1ObjectMeta[optional]
role_refV1RoleRef
subjectsList[RbacV1Subject]Subjects holds references to the objects the role applies to.[optional]

Example

from kubernetes.client.models.v1_cluster_role_binding import V1ClusterRoleBinding

# TODO update the JSON string below
json = "{}"
# create an instance of V1ClusterRoleBinding from a JSON string
v1_cluster_role_binding_instance = V1ClusterRoleBinding.from_json(json)
# print the JSON string representation of the object
print(V1ClusterRoleBinding.to_json())

# convert the object into a dict
v1_cluster_role_binding_dict = v1_cluster_role_binding_instance.to_dict()
# create an instance of V1ClusterRoleBinding from a dict
v1_cluster_role_binding_from_dict = V1ClusterRoleBinding.from_dict(v1_cluster_role_binding_dict)

[Back to Model list] [Back to API list] [Back to README]