Documentation
¶
Index ¶
- func AddFinalizer(obj metav1.Object, finalizer string) bool
- func HasFinalizer(obj metav1.Object, finalizer string) bool
- func IgnoreNotFound(err error) error
- func RemoveFinalizer(obj metav1.Object, finalizer string) bool
- func RequeueConflict(result ctrl.Result, err error) (ctrl.Result, error)
- func RequeueTrialUnavailable(result ctrl.Result, err error) (ctrl.Result, error)
- type Selector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFinalizer ¶ added in v1.1.4
AddFinalizer adds a finalizer to an object; returns true only if object is changed
func HasFinalizer ¶ added in v1.2.0
HasFinalizer checks to see if a finalizer is present on an object
func IgnoreNotFound ¶ added in v1.1.4
IgnoreNotFound returns the supplied error, unless that error is a "not found" error
func RemoveFinalizer ¶ added in v1.1.4
RemoveFinalizer deletes a finalizer from an object; return true only if the object is changed
func RequeueConflict ¶ added in v1.2.0
RequeueConflict returns the supplied result and error, unless that error is a "conflict" error in which case the requeue state is set on the result and a nil error is returned.
func RequeueTrialUnavailable ¶ added in v1.2.0
RequeueTrialUnavailable returns the supplied result and error, unless that error is a "trial unavailable" in which case the requeue delay is set on the result and a nil error is returned.
Types ¶
type Selector ¶
Selector is used to bridge the gap between the controller runtime client and the K8s API
func MatchingSelector ¶
func MatchingSelector(sel *metav1.LabelSelector) (*Selector, error)
MatchingSelector exposes a K8s API label selector as a controller runtime client list option, normally these are not allowed to produce errors so this is a special case.
func (*Selector) ApplyToList ¶
func (m *Selector) ApplyToList(o *client.ListOptions)
ApplyToList will overwrite the controller runtime client list options label selector
func (*Selector) ApplyToListOptions ¶
func (m *Selector) ApplyToListOptions(o *metav1.ListOptions)
ApplyToListOptions will overwrite the K8s list options label selector