ownerhandling

package
v0.2.1-0...-90e585d Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Annotation = &OwnerStrategyAnnotation{}
	Native     = &OwnerStrategyNative{}
)

Functions

This section is empty.

Types

type AnnotationEnqueueOwnerHandler

type AnnotationEnqueueOwnerHandler struct {
	OwnerType    client.Object
	IsController bool
	// contains filtered or unexported fields
}

func (*AnnotationEnqueueOwnerHandler) Create

Create implements EventHandler

func (*AnnotationEnqueueOwnerHandler) Delete

Delete implements EventHandler

func (*AnnotationEnqueueOwnerHandler) Generic

Generic implements EventHandler

func (*AnnotationEnqueueOwnerHandler) InjectScheme

func (e *AnnotationEnqueueOwnerHandler) InjectScheme(s *runtime.Scheme) error

func (*AnnotationEnqueueOwnerHandler) Update

Update implements EventHandler

type OwnerStrategyAnnotation

type OwnerStrategyAnnotation struct{}

NativeOwner handling strategy uses .metadata.annotations

func (*OwnerStrategyAnnotation) EnqueueRequestForOwner

func (s *OwnerStrategyAnnotation) EnqueueRequestForOwner(
	ownerType client.Object, isController bool,
) handler.EventHandler

func (*OwnerStrategyAnnotation) IsOwner

func (s *OwnerStrategyAnnotation) IsOwner(owner, obj metav1.Object) bool

func (*OwnerStrategyAnnotation) ReleaseController

func (s *OwnerStrategyAnnotation) ReleaseController(obj metav1.Object)

func (*OwnerStrategyAnnotation) SetControllerReference

func (s *OwnerStrategyAnnotation) SetControllerReference(owner, obj metav1.Object, scheme *runtime.Scheme) error

type OwnerStrategyNative

type OwnerStrategyNative struct{}

NativeOwner handling strategy uses .metadata.ownerReferences

func (*OwnerStrategyNative) EnqueueRequestForOwner

func (s *OwnerStrategyNative) EnqueueRequestForOwner(
	ownerType client.Object, isController bool,
) handler.EventHandler

func (*OwnerStrategyNative) IsOwner

func (s *OwnerStrategyNative) IsOwner(owner, obj metav1.Object) bool

func (*OwnerStrategyNative) ReleaseController

func (s *OwnerStrategyNative) ReleaseController(obj metav1.Object)

func (*OwnerStrategyNative) SetControllerReference

func (s *OwnerStrategyNative) SetControllerReference(owner, obj metav1.Object, scheme *runtime.Scheme) error

Jump to

Keyboard shortcuts

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