Share via


RoleBinding Class

Definition

Represents a Kubernetes RoleBinding resource, binding a Role or ClusterRole to a set of subjects (users, groups, or service accounts).

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

Remarks

A RoleBinding grants the permissions defined in a Role to specific users, groups, or service accounts within a namespace. It supports the inclusion of multiple subjects and references a single role through the RoleRef property. The RoleBinding resource is namespace-scoped and helps manage access control within the Kubernetes RBAC framework.

Constructors

RoleBinding()

Represents a Kubernetes RoleBinding resource, binding a Role or ClusterRole to a set of subjects (users, groups, or service accounts).

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 reference to the role or cluster role that the binding applies to.

Subjects

Represents a collection of Subjects that define the identities (users, groups, or service accounts) bound to a specific Role or ClusterRole in Kubernetes.

Applies to