Files
kubernetes/pkg/api
k8s-merge-robot 1c72ba6810 Merge pull request #29520 from hongchaodeng/serr
Automatic merge from submit-queue

storage error: precondition failure should return invalid object error

In introducing the preconditions by @caesarxuchao , if check preconditions failed, it returns resource version conflict error. This is the wrong error to return, and instead it should return invalid object error. We need to separate these two types of errors.
See the implementation in etcd3 [https://github.com/kubernetes/kubernetes/blob/master/pkg/storage/etcd3/store.go#L467].

Also renaming "ErrCodeResourceVersionConflicts" to "ErrCodeVersionConflicts" for simpler reading.
2016-07-27 22:12:11 -07:00
..
2016-07-16 13:48:21 -04:00
2016-07-16 13:48:21 -04:00
2016-07-16 13:48:21 -04:00
2016-07-16 13:48:21 -04:00
2016-03-02 20:46:32 -05:00
2016-07-12 21:52:00 -07:00
2016-07-13 15:06:24 +01:00