mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Revert Provide resource version in error if available
This commit is contained in:
parent
33541bdd34
commit
58b0a2769a
@ -124,11 +124,6 @@ func (s *store) Get(ctx context.Context, key string, resourceVersion string, out
|
||||
if ignoreNotFound {
|
||||
return runtime.SetZeroValue(out)
|
||||
}
|
||||
if len(resourceVersion) > 0 {
|
||||
if rv, err := s.versioner.ParseResourceVersion(resourceVersion); err == nil {
|
||||
return storage.NewKeyNotFoundError(key, int64(rv))
|
||||
}
|
||||
}
|
||||
return storage.NewKeyNotFoundError(key, 0)
|
||||
}
|
||||
kv := getResp.Kvs[0]
|
||||
|
Loading…
Reference in New Issue
Block a user