Documentation
¶
Index ¶
- func AddFinalizerIfNeeded(ctx context.Context, c client.Client, object client.Object, finalizer string) error
- func RemoveFinalizerIfNeeded(ctx context.Context, c client.Client, object client.Object, finalizer string) error
- func SendErrorAsEvent(r record.EventRecorder, err error, objects ...runtime.Object) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFinalizerIfNeeded ¶
func AddFinalizerIfNeeded(ctx context.Context, c client.Client, object client.Object, finalizer string) error
AddFinalizerIfNeeded adds a finalizer via patch if is not present in the object
func RemoveFinalizerIfNeeded ¶
func RemoveFinalizerIfNeeded(ctx context.Context, c client.Client, object client.Object, finalizer string) error
RemoveFinalizerIfNeeded removes a finalizer via patch if is present in the object
func SendErrorAsEvent ¶
SendErrorAsEvent sends an event for an error to the given objects and returns the error. It cast some openstack errors to send more information of the error in the event.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.