Share via


ClusterRole.Rules Property

Definition

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

[YamlDotNet.Serialization.YamlMember(Alias="rules")]
public System.Collections.Generic.List<Aspire.Hosting.Kubernetes.Resources.PolicyRuleV1> Rules { get; }
[<YamlDotNet.Serialization.YamlMember(Alias="rules")>]
member this.Rules : System.Collections.Generic.List<Aspire.Hosting.Kubernetes.Resources.PolicyRuleV1>
Public ReadOnly Property Rules As List(Of PolicyRuleV1)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The Rules property defines a set of rules that dictate access permissions within a Kubernetes ClusterRole resource. Each rule describes the actions, resources, and namespaces that are subject to specific policies. This property is a list of PolicyRuleV1 objects, where each object specifies the precise components of a policy rule, including API groups, resources, verbs, and URLs.

Applies to