Documentation ¶
Index ¶
- Constants
- func AddToAnnotation(owner types.NamespacedName, object client.Object)
- func RemoveFromAnnotation(owner types.NamespacedName, object client.Object)
- type EnqueueRequestForAnnotation
- func (e *EnqueueRequestForAnnotation) Create(_ context.Context, evt event.CreateEvent, q workqueue.RateLimitingInterface)
- func (e *EnqueueRequestForAnnotation) Delete(_ context.Context, evt event.DeleteEvent, q workqueue.RateLimitingInterface)
- func (e *EnqueueRequestForAnnotation) Generic(_ context.Context, evt event.GenericEvent, q workqueue.RateLimitingInterface)
- func (e *EnqueueRequestForAnnotation) Update(_ context.Context, evt event.UpdateEvent, q workqueue.RateLimitingInterface)
Constants ¶
View Source
const ( // NamespacedNameAnnotation is an annotation that indicates who the dynamic environment owner of this resource is. // The format is `<namespace>/<name>` with comma-separated values if there is more than one dynamic environment NamespacedNameAnnotation = "riskified.com/dynamic-environment" )
Variables ¶
This section is empty.
Functions ¶
func AddToAnnotation ¶
func AddToAnnotation(owner types.NamespacedName, object client.Object)
AddToAnnotation appends the current Dynamic environment to `NamespacedNameAnnotation`
func RemoveFromAnnotation ¶
func RemoveFromAnnotation(owner types.NamespacedName, object client.Object)
RemoveFromAnnotation removes current Dynamic environment from `NamespacedNameAnnotation`
Types ¶
type EnqueueRequestForAnnotation ¶
type EnqueueRequestForAnnotation struct{}
func (*EnqueueRequestForAnnotation) Create ¶
func (e *EnqueueRequestForAnnotation) Create(_ context.Context, evt event.CreateEvent, q workqueue.RateLimitingInterface)
Create is called in response to an 'add' event.
func (*EnqueueRequestForAnnotation) Delete ¶
func (e *EnqueueRequestForAnnotation) Delete(_ context.Context, evt event.DeleteEvent, q workqueue.RateLimitingInterface)
Delete is called in response to a 'delete' event.
func (*EnqueueRequestForAnnotation) Generic ¶
func (e *EnqueueRequestForAnnotation) Generic(_ context.Context, evt event.GenericEvent, q workqueue.RateLimitingInterface)
GenericFunc is called in response to a generic event.
func (*EnqueueRequestForAnnotation) Update ¶
func (e *EnqueueRequestForAnnotation) Update(_ context.Context, evt event.UpdateEvent, q workqueue.RateLimitingInterface)
Update is called in response to an update event.
Click to show internal directories.
Click to hide internal directories.