Documentation
¶
Index ¶
- func ContentHashFilter(object metav1.Object) bool
- func ContentHashLabeler[T metav1.Object, A ApplyConfig[A]](ctx context.Context, logger *logrus.Logger, check func(metav1.Object) bool, ...) func(done func() bool) queueinformer.LegacySyncHandler
- func Filter(gvr schema.GroupVersionResource) func(metav1.Object) bool
- func HasOLMLabel(object metav1.Object) bool
- func HasOLMOwnerRef(object metav1.Object) bool
- func JobFilter(getConfigMap func(namespace, name string) (metav1.Object, error)) func(object metav1.Object) bool
- func ObjectLabeler[T metav1.Object, A ApplyConfig[A]](ctx context.Context, logger *logrus.Logger, check func(metav1.Object) bool, ...) func(done func() bool) queueinformer.LegacySyncHandler
- func ObjectPatchLabeler(ctx context.Context, logger *logrus.Logger, check func(metav1.Object) bool, ...) func(done func() bool) queueinformer.LegacySyncHandler
- func ServiceAccountFilter(isServiceAccountReferenced func(namespace, name string) bool) func(object metav1.Object) bool
- func Validate(ctx context.Context, logger *logrus.Logger, metadataClient metadata.Interface, ...) (bool, error)
- type ApplyConfig
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentHashFilter ¶
func ContentHashLabeler ¶
func ContentHashLabeler[T metav1.Object, A ApplyConfig[A]]( ctx context.Context, logger *logrus.Logger, check func(metav1.Object) bool, hasher func(object T) (string, error), list func(options labels.Selector) ([]T, error), applyConfigFor func(name, namespace string) A, apply func(namespace string, ctx context.Context, cfg A, opts metav1.ApplyOptions) (T, error), ) func(done func() bool) queueinformer.LegacySyncHandler
func HasOLMLabel ¶
func HasOLMOwnerRef ¶
HasOLMOwnerRef determines if an object is owned by another object in the OLM Groups. This checks both classical OwnerRefs and the "OLM OwnerRef" in labels to handle cluster-scoped resources.
func ObjectLabeler ¶
func ObjectLabeler[T metav1.Object, A ApplyConfig[A]]( ctx context.Context, logger *logrus.Logger, check func(metav1.Object) bool, list func(options labels.Selector) ([]T, error), applyConfigFor func(name, namespace string) A, apply func(namespace string, ctx context.Context, cfg A, opts metav1.ApplyOptions) (T, error), ) func(done func() bool) queueinformer.LegacySyncHandler
func ObjectPatchLabeler ¶
func ObjectPatchLabeler( ctx context.Context, logger *logrus.Logger, check func(metav1.Object) bool, list func(selector labels.Selector) (ret []*metav1.PartialObjectMetadata, err error), patch func(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *apiextensionsv1.CustomResourceDefinition, err error), ) func(done func() bool) queueinformer.LegacySyncHandler
CRDs did not have applyconfigurations generated for them on accident, we can remove this when https://github.com/kubernetes/kubernetes/pull/120177 lands
func ServiceAccountFilter ¶
Types ¶
type ApplyConfig ¶
type Client ¶
type Client[A ApplyConfig[A], T metav1.Object] interface { Apply(ctx context.Context, cfg ApplyConfig[A], opts metav1.ApplyOptions) (result T, err error) }
Click to show internal directories.
Click to hide internal directories.