mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 02:09:56 +00:00
Merge pull request #79902 from tedyu/store-no-rv
Revert Provide resource version in error if available
This commit is contained in:
commit
955198751c
@ -124,11 +124,6 @@ func (s *store) Get(ctx context.Context, key string, resourceVersion string, out
|
|||||||
if ignoreNotFound {
|
if ignoreNotFound {
|
||||||
return runtime.SetZeroValue(out)
|
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)
|
return storage.NewKeyNotFoundError(key, 0)
|
||||||
}
|
}
|
||||||
kv := getResp.Kvs[0]
|
kv := getResp.Kvs[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user