k3s/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
..
annotations Use Go canonical import paths 2016-07-16 13:48:21 -04:00
endpoints Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
errors storage error: precondition failure should return invalid object error 2016-07-24 20:21:42 -07:00
install Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
meta Use Go canonical import paths 2016-07-16 13:48:21 -04:00
pod Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
resource Add support for manually defined DeepCopy methods 2016-07-07 16:49:46 -07:00
rest Use Go canonical import paths 2016-07-16 13:48:21 -04:00
service Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
testapi Revert "add tokenreviews endpoint to implement webhook" 2016-07-21 09:40:35 +02:00
testing Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
unversioned Merge pull request #29042 from dims/fixup-imports 2016-07-18 07:23:38 -07:00
util Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
v1 Merge pull request #29042 from dims/fixup-imports 2016-07-18 07:23:38 -07:00
validation Merge pull request #26942 from xiangpengzhao/fix_testcase 2016-07-26 20:35:32 -07:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
context.go Merge pull request #25307 from derekwaynecarr/set_uid_from_context 2016-07-20 09:58:51 -07:00
context_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
conversion.go unversioned: conversion from new to original label selector 2016-07-15 14:52:27 +02:00
conversion_test.go Turn pkg/api/pod_example.json into go struct to avoid noise in pprof 2016-07-12 20:36:48 +02:00
copy_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
deep_copy_test.go Turn pkg/api/pod_example.json into go struct to avoid noise in pprof 2016-07-12 20:36:48 +02:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
field_constants.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
generate.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
generate_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
helpers.go Use PreferAvoidPods annotation to avoid pods being scheduled to specific node. 2016-07-13 17:07:46 +08:00
helpers_test.go Use PreferAvoidPods annotation to avoid pods being scheduled to specific node. 2016-07-13 17:07:46 +08:00
mapper.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
meta.go Merge pull request #25307 from derekwaynecarr/set_uid_from_context 2016-07-20 09:58:51 -07:00
meta_test.go Merge pull request #25307 from derekwaynecarr/set_uid_from_context 2016-07-20 09:58:51 -07:00
node_example.json
ref.go move api.OjbectReference.ObjectKind() to ref.go 2016-07-14 23:02:05 -07:00
ref_test.go Use make as the main build tool 2016-07-12 21:52:00 -07:00
register.go Fixed several typos 2016-07-13 15:06:24 +01:00
replication_controller_example.json
requestcontext.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
resource_helpers.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
resource_helpers_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
serialization_proto_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
serialization_test.go api: custom conversions for rc/rs 2016-07-15 14:52:27 +02:00
types.generated.go Use PreferAvoidPods annotation to avoid pods being scheduled to specific node. 2016-07-13 17:07:46 +08:00
types.go Merge pull request #25273 from ncdc/exec-sigwinch 2016-07-14 07:26:49 -07:00
zz_generated.deepcopy.go Commit generated files 2016-07-15 10:27:51 -07:00