- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ignoreNotFound (0.16 sec)
-
staging/src/k8s.io/apiserver/pkg/registry/generic/registry/dryrun.go
current = u.NewEmptyInstance() } else { current = reflect.New(v.Type()).Interface().(runtime.Object) } err = s.Storage.Get(ctx, key, storage.GetOptions{IgnoreNotFound: ignoreNotFound}, current) if err != nil { return err } err = preconditions.Check(key, current) if err != nil { return err } rev, err := s.Versioner().ObjectResourceVersion(current)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 02 20:40:48 UTC 2023 - 3.8K bytes - Viewed (0) -
pkg/kube/controllers/common.go
return empty } } return o } func ExtractObject(obj any) Object { return Extract[Object](obj) } // IgnoreNotFound returns nil on NotFound errors. // All other values that are not NotFound errors or nil are returned unmodified. func IgnoreNotFound(err error) error { if kerrors.IsNotFound(err) { return nil } return err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 11 08:27:29 UTC 2024 - 8.9K bytes - Viewed (0) -
pkg/registry/core/service/allocator/storage/storage.go
func (e *Etcd) Get() (*api.RangeAllocation, error) { existing := &api.RangeAllocation{} if err := e.storage.Get(context.TODO(), e.baseKey, storage.GetOptions{IgnoreNotFound: true}, existing); err != nil { return nil, storeerr.InterpretGetError(err, e.resource, "") } return existing, nil } // CreateOrUpdate attempts to update the current etcd state with the provided
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 24 09:23:05 UTC 2023 - 6.5K bytes - Viewed (0)