Documentation
¶
Index ¶
- Variables
- 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
- func ToNamespacedName(nnString string) (types.NamespacedName, error)
- type Version
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNamespacedNameSplit = errors.New("unable to decode string into NamespacedName")
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.
func ToNamespacedName ¶ added in v0.12.0
func ToNamespacedName(nnString string) (types.NamespacedName, error)
Types ¶
type Version ¶ added in v0.12.0
func GetVersion ¶ added in v0.12.0
func GetVersion(client *discovery.DiscoveryClient) (*Version, error)
Click to show internal directories.
Click to hide internal directories.