class K8S::Api::Flowcontrol::V1alpha1::ResourcePolicyRule

Overview

ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) least one member of namespaces matches the request.

Included Modules

Defined in:

versions/v1.19/api/flowcontrol/v1alpha1/resource_policy_rule.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, api_groups : Array, resources : Array, verbs : Array, cluster_scope : Bool? = nil, namespaces : Array? = nil) #

[View source]

Instance Method Detail

def api_groups : Array(String) #

[View source]
def api_groups=(api_groups : Array(String)) #

[View source]
def cluster_scope : Bool? #

[View source]
def cluster_scope=(cluster_scope : Bool?) #

[View source]
def namespaces : Array(String)? #

[View source]
def namespaces=(namespaces : Array(String)?) #

[View source]
def resources : Array(String) #

[View source]
def resources=(resources : Array(String)) #

[View source]
def verbs : Array(String) #

[View source]
def verbs=(verbs : Array(String)) #

[View source]