Share via


SubjectV1 Class

Definition

Represents a subject in Kubernetes RoleBinding or ClusterRoleBinding resources.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class SubjectV1
[<YamlDotNet.Serialization.YamlSerializable>]
type SubjectV1 = class
Public NotInheritable Class SubjectV1
Inheritance
SubjectV1
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Remarks

A subject identifies a Kubernetes entity, such as a user, group, or service account, that is granted permissions through a RoleBinding or ClusterRoleBinding.

Constructors

SubjectV1()

Properties

ApiGroup

Gets or sets the API group of the subject in Kubernetes. This property specifies the group of the referenced resource, which is used to differentiate resources with the same kind or name belonging to different API groups.

Kind

Gets or sets the kind of the subject. This property specifies the type of the Kubernetes subject, such as "User", "Group", or "ServiceAccount".

Name

Gets or sets the name of the Kubernetes resource subject. Represents the specific subject entity associated with the resource.

Namespace

Gets or sets the namespace associated with the subject. This property is used to specify the namespace in which the subject resides. It is typically applicable in contexts where namespace-scoped resources are involved.

Applies to