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
Members list
Value members
Concrete methods
Appends new values to apiGroups
Appends new values to namespaces
Appends new values to resources
Appends new values to verbs
transforms apiGroups to result of function
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 verbs to result of function
Returns a new data with apiGroups set to new value
Returns a new data with clusterScope set to new value
Returns a new data with namespaces set to new value
Returns a new data with resources set to new value
Returns a new data with verbs set to new value