kubernetes

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

func SendErrorAsEvent(r record.EventRecorder, err error, objects ...runtime.Object) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL