Documentation
¶
Overview ¶
Copyright 2019 GramLabs, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2019 GramLabs, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2019 GramLabs, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func AddFinalizer(obj metav1.Object, finalizer string) bool
- func IgnoreConflict(err error) (ctrl.Result, error)
- func IgnoreNotFound(err error) (ctrl.Result, error)
- func IgnoreTrialUnavailable(err error) (ctrl.Result, error)
- func RemoveFinalizer(obj metav1.Object, finalizer string) bool
- 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 IgnoreConflict ¶ added in v1.1.4
IgnoreConflict returns a default result and the supplied error, unless that error is a "conflict" in which case a requeue is requested
func IgnoreNotFound ¶ added in v1.1.4
IgnoreNotFound returns a default result and the supplied error, unless that error is a "not found" error
func IgnoreTrialUnavailable ¶ added in v1.1.4
IgnoreTrialUnavailable returns a default result and the supplied error, unless that error is a "trial unavailable" in which case a delayed requeue is requested
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