Documentation ¶
Overview ¶
Package controllerutil contains utility functions for working with and implementing Controllers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetControllerReference ¶
SetControllerReference sets owner as a Controller OwnerReference on owned. This is used for garbage collection of the owned object and for reconciling the owner object on changes to owned (with a Watch + EnqueueRequestForOwner). Since only one OwnerReference can be a controller, it returns an error if there is another OwnerReference with Controller flag set.
Types ¶
type AlreadyOwnedError ¶
type AlreadyOwnedError struct { Object v1.Object Owner v1.OwnerReference }
AlreadyOwnedError is an error returned if the object you are trying to assign a controller reference is already owned by another controller Object is the subject and Owner is the reference for the current owner
func (*AlreadyOwnedError) Error ¶
func (e *AlreadyOwnedError) Error() string