predicate

package
v0.12.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ready

Ready is a Predicate that returns the subset of given policies that have a Ready condition set to True.

func SelectorIssuerRef

SelectorIssuerRef is a Predicate that returns the subset of given policies that have an `spec.selector.issuerRef` matching the `spec.issuerRef` in the request. PredicateSelectorIssuerRef will match on strings using wilcards "*". Empty selector is equivalent to "*" and will match on anything.

Types

type Predicate

Predicate is a func called by the Approver Manager to filter the set of CertificateRequestPolicies that should be evaluated on the CertificateRequest. Returned list of CertificateRequestPolicies pass the predicate or filter.

func RBACBound

func RBACBound(client client.Client) Predicate

RBACBoundPolicies is a Predicate that returns the subset of CertificateRequestPolicies that have been RBAC bound to the user in the CertificateRequest. Achieved using SubjectAccessReviews.

func SelectorNamespace added in v0.5.0

func SelectorNamespace(lister client.Reader) Predicate

SelectorNamespace is a Predicate that returns the subset of given policies that have an `spec.selector.namespace` matching the `metadata.namespace` of the request. SelectorNamespace will match with `namespace.matchNames` on namespaces using wilcards "*". Empty selector is equivalent to "*" and will match on any Namespace.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL