ResourcePolicyRule

io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule
See theResourcePolicyRule companion object
final case class ResourcePolicyRule(verbs: Seq[String], apiGroups: Seq[String], resources: Seq[String], clusterScope: Option[Boolean], namespaces: Option[Seq[String]])

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) either (d1) the request does not specify a namespace (i.e., Namespace=="") and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.

Attributes

Companion
object
Source
ResourcePolicyRule.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Appends new values to apiGroups

Appends new values to apiGroups

Attributes

Source
ResourcePolicyRule.scala

Appends new values to namespaces

Appends new values to namespaces

Attributes

Source
ResourcePolicyRule.scala

Appends new values to resources

Appends new values to resources

Attributes

Source
ResourcePolicyRule.scala
def addVerbs(newValues: String*): ResourcePolicyRule

Appends new values to verbs

Appends new values to verbs

Attributes

Source
ResourcePolicyRule.scala

transforms apiGroups to result of function

transforms apiGroups to result of function

Attributes

Source
ResourcePolicyRule.scala

if clusterScope has a value, transforms to the result of function

if clusterScope has a value, transforms to the result of function

Attributes

Source
ResourcePolicyRule.scala

if namespaces has a value, transforms to the result of function

if namespaces has a value, transforms to the result of function

Attributes

Source
ResourcePolicyRule.scala

transforms resources to result of function

transforms resources to result of function

Attributes

Source
ResourcePolicyRule.scala

transforms verbs to result of function

transforms verbs to result of function

Attributes

Source
ResourcePolicyRule.scala

Returns a new data with apiGroups set to new value

Returns a new data with apiGroups set to new value

Attributes

Source
ResourcePolicyRule.scala

Returns a new data with clusterScope set to new value

Returns a new data with clusterScope set to new value

Attributes

Source
ResourcePolicyRule.scala

Returns a new data with namespaces set to new value

Returns a new data with namespaces set to new value

Attributes

Source
ResourcePolicyRule.scala

Returns a new data with resources set to new value

Returns a new data with resources set to new value

Attributes

Source
ResourcePolicyRule.scala

Returns a new data with verbs set to new value

Returns a new data with verbs set to new value

Attributes

Source
ResourcePolicyRule.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product