Skip to content
Snippets Groups Projects

Add utilities to support working with Kubernetes object collections

Merged Hossein Pursultani requested to merge hp-objects-support into master
All threads resolved!
Files
2
@@ -50,7 +50,7 @@ func (c Collection) Query(selectors ...Selector) Collection {
// order that are specified.
//
// It returns the number of objects that are changed. When an error occurs
// in one of the editors it stops the change and return the error immediately
// in one of the editors it stops the change and returns the error immediately
// unless it is a type mismatch error which is used by the Editor to signal that
// it can not edit the object due to type restrictions.
func (c Collection) Edit(editors ...Editor) (int, error) {
@@ -63,8 +63,9 @@ func (c Collection) Edit(editors ...Editor) (int, error) {
if err != nil {
if IsTypeMismatchError(err) {
continue
} else {
return count, err
}
return count, err
}
}
}
Loading