ClusterRoleBinding
Class sealed net10.0
Represents a ClusterRoleBinding in a Kubernetes cluster.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class ClusterRoleBinding : Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource{ // ...}Remarks
Section titled 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.
Constructors1
Section titled ConstructorsProperties2
Section titled PropertiesRoleRefget; set 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.
Subjectsget 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.