Share via


ClusterRole Class

Definition

Represents a Kubernetes ClusterRole resource in API version v1.

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

Remarks

A ClusterRole is a cluster-scoped resource in Kubernetes used for Role-Based Access Control (RBAC). It is used to define a set of permissions that are applicable across the entire cluster.

Constructors

ClusterRole()

Represents a Kubernetes ClusterRole resource in API version v1.

Properties

AggregationRule

Gets or sets the aggregation rule associated with the ClusterRole. Defines how multiple cluster roles can be aggregated together, simplifying role-based access control implementation.

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)
Rules

Represents a collection of policy rules applied to the Kubernetes ClusterRole.

Applies to