Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterScopedOnRemoveHandler ¶
func RegisterScopedOnRemoveHandler(ctx context.Context, controller Controller, name string, scopeFunc ScopeFunc, handler generic.Handler)
RegisterScopedOnRemoveHandler registers a handler that does the same thing as an OnRemove handler but only applies finalizers or sync logic to objects that pass the provided scopeFunc; this ensures that finalizers are not added to all resources across an entire cluster but are instead only scoped to resources that this controller is meant to watch.
TODO: move this to rancher/wrangler as a generic construct to be used across multiple controllers as part of the auto-generated code
Types ¶
Click to show internal directories.
Click to hide internal directories.