Documentation ¶
Index ¶
- Variables
- type AnnotationEnqueueOwnerHandler
- func (e *AnnotationEnqueueOwnerHandler) Create(evt event.CreateEvent, q workqueue.RateLimitingInterface)
- func (e *AnnotationEnqueueOwnerHandler) Delete(evt event.DeleteEvent, q workqueue.RateLimitingInterface)
- func (e *AnnotationEnqueueOwnerHandler) Generic(evt event.GenericEvent, q workqueue.RateLimitingInterface)
- func (e *AnnotationEnqueueOwnerHandler) InjectScheme(s *runtime.Scheme) error
- func (e *AnnotationEnqueueOwnerHandler) Update(evt event.UpdateEvent, q workqueue.RateLimitingInterface)
- type OwnerStrategyAnnotation
- func (s *OwnerStrategyAnnotation) EnqueueRequestForOwner(ownerType client.Object, isController bool) handler.EventHandler
- func (s *OwnerStrategyAnnotation) IsOwner(owner, obj metav1.Object) bool
- func (s *OwnerStrategyAnnotation) ReleaseController(obj metav1.Object)
- func (s *OwnerStrategyAnnotation) SetControllerReference(owner, obj metav1.Object, scheme *runtime.Scheme) error
- type OwnerStrategyNative
- func (s *OwnerStrategyNative) EnqueueRequestForOwner(ownerType client.Object, isController bool) handler.EventHandler
- func (s *OwnerStrategyNative) IsOwner(owner, obj metav1.Object) bool
- func (s *OwnerStrategyNative) ReleaseController(obj metav1.Object)
- func (s *OwnerStrategyNative) SetControllerReference(owner, obj metav1.Object, scheme *runtime.Scheme) error
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 ¶
func (e *AnnotationEnqueueOwnerHandler) Create(evt event.CreateEvent, q workqueue.RateLimitingInterface)
Create implements EventHandler
func (*AnnotationEnqueueOwnerHandler) Delete ¶
func (e *AnnotationEnqueueOwnerHandler) Delete(evt event.DeleteEvent, q workqueue.RateLimitingInterface)
Delete implements EventHandler
func (*AnnotationEnqueueOwnerHandler) Generic ¶
func (e *AnnotationEnqueueOwnerHandler) Generic(evt event.GenericEvent, q workqueue.RateLimitingInterface)
Generic implements EventHandler
func (*AnnotationEnqueueOwnerHandler) InjectScheme ¶
func (e *AnnotationEnqueueOwnerHandler) InjectScheme(s *runtime.Scheme) error
func (*AnnotationEnqueueOwnerHandler) Update ¶
func (e *AnnotationEnqueueOwnerHandler) Update(evt event.UpdateEvent, q workqueue.RateLimitingInterface)
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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.