Share via


ClusterRoleBinding Class

Definition

Represents a ClusterRoleBinding in a Kubernetes cluster.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class ClusterRoleBinding : Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource
[<YamlDotNet.Serialization.YamlSerializable>]
type ClusterRoleBinding = class
    inherit BaseKubernetesResource
Public NotInheritable Class ClusterRoleBinding
Inherits BaseKubernetesResource
Inheritance
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Remarks

A ClusterRoleBinding grants access to cluster-scoped resources by binding a ClusterRole to one or more subjects. It contains a reference to a ClusterRole and a collection of subjects, such as users, groups, or service accounts, to which it applies.

Constructors

ClusterRoleBinding()

Represents a ClusterRoleBinding in a Kubernetes cluster.

Properties

ApiVersion

Gets or sets the API version for the Kubernetes resource.

(Inherited from BaseKubernetesObject)
Kind

Gets or sets the kind of the Kubernetes resource.

(Inherited from BaseKubernetesObject)
Metadata

Gets or sets the metadata for the Kubernetes resource.

(Inherited from BaseKubernetesResource)
RoleRef

Gets or sets the RoleRef property, which contains information pointing to the Kubernetes role being referenced within the ClusterRoleBinding configuration. The RoleRef property defines the role name, kind, and the group for API access, to ensure the binding is correctly associated with the intended permissions and scope.

Subjects

Gets the list of subjects associated with the ClusterRoleBinding. Subjects refer to the entities (users, groups, or service accounts) that the role binding applies to.

Applies to