Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtractorFunc ¶
An ExtractorFunc applies a transformation to a runtime.Object and creates a predicate function based on the result of the transformation. This can be used to apply complex lookup logic to determine which resources should be enqueued if another resource being watched changes, for example, enqueuing all Certificate resources that own a CertificateRequest that has been observed, or enqueuing all Certificate resources that specify `status.nextPrivateKeySecretName` as the name of the Secret being processed.
func ExtractResourceName ¶
func ExtractResourceName(p func(s string) Func) ExtractorFunc
ExtractResourceName is a helper function used to extract a name from a metav1.Object being enqueued to construct a Func that is variadic based on a string value.
type Func ¶
Func is a generic function used to filter various types of resources.
func CertificateNextPrivateKeySecretName ¶
CertificateSecretName returns a predicate that used to filter Certificates to only those with the given 'status.nextPrivateKeySecretName'. It is not possible to select Certificates with a 'nil' secret name using this predicate function.
func CertificateRequestRevision ¶
CertificateRequestRevision returns a predicate that used to filter CertificateRequest to only those with a given 'revision' number.
func CertificateSecretName ¶
CertificateSecretName returns a predicate that used to filter Certificates to only those with the given 'spec.secretName'.
func ResourceOwnedBy ¶
ResourceOwnedBy will filter returned results to only those with the given resource as an owner.
func ResourceOwnerOf ¶
ResourceOwnerOf will filter returned results to only those that own the given resource.