kubernetes/pkg/api
Kubernetes Submit Queue a39cee990c Merge pull request #32751 from caesarxuchao/specific-error-rolling-update
Automatic merge from submit-queue

Specific error message on failed rolling update issued by older kubectl against 1.4 master

Fix #32706

`kubernetes-e2e-gke-1.4-1.3-kubectl-skew` (1.3 kubectl and 1.4 master) test suite failed with:
```
k8s.io] Kubectl client [k8s.io] Kubectl rolling-update should support rolling-update to same image [Conformance]
...
Error from server: object is being deleted: replicationcontrollers "e2e-test-nginx-rc" already exists error: exit status 1 not to have occurred
```

It's because the old RC had an orphanFinalizer, so it is not deleted from the key-value store immediately. In turn, the creation of the new RC of the same name failed. 

In this failure, the RC and pods are updated, it's just that the RC is of different name, i.e., original name + a hash generated based on podTemplate. The error is confusing to user, but not that bad. So this PR just prints a warning message to instruct users how to work around.

1.4 kubectl rolling-update uses different logic so it's working.

@lavalamp @gmarek @janetkuo @pwittrock 

cc @liggitt for the ctx changes.
2016-09-15 21:41:56 -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 Revert "Revert "Allow webhook authenticator to use TokenReviewsInterface"" 2016-09-13 16:23:17 -04:00
install make shortcut expanding restmapper handle all 2016-09-15 11:03:51 -04:00
meta add FirstHitRESTMapper for adding thirdparty resources 2016-09-15 10:26:39 -04:00
pod Fix various typos in pkg/api 2016-08-29 11:31:16 +02:00
resource Update generated proto and swagger docs 2016-09-12 18:47:03 -07:00
rest Merge pull request #31522 from krousey/path_validation 2016-09-07 10:14:32 -07:00
service GCE Cloud provider changes for ESIPP 2016-08-23 16:16:39 -07:00
testapi Merge pull request #30565 from lavalamp/improve-registered 2016-09-15 16:03:39 -07:00
testing change rbac roleref type 2016-09-09 09:55:51 -04:00
unversioned Add +k8s:openapi-gen tag to API types 2016-09-12 18:47:03 -07:00
util Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
v1 Add +k8s:openapi-gen tag to API types 2016-09-12 18:47:03 -07:00
validation add validation rule to prevent adding finalizers if the object is being deleted 2016-09-09 15:29:08 -07:00
context_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
context.go print instruction in case of failed kubectl 1.3 rolling-update against 1.4 cluster 2016-09-15 17:20:39 -07: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
conversion.go fix register.go files up + add test import 2016-08-11 17:06:54 -07:00
copy_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
deep_copy_test.go Update etcd default ports for v3, and validate tests 2016-08-17 07:49:19 -05:00
defaults.go fix register.go files up + add test import 2016-08-11 17:06:54 -07: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_test.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
helpers_test.go update taints e2e, respect that taint is unique by key, effect 2016-09-09 19:15:11 +08:00
helpers.go update taints e2e, respect that taint is unique by key, effect 2016-09-09 19:15:11 +08:00
mapper.go Adding events to federation apiserver 2016-08-12 10:48:19 -07:00
meta_test.go Refactor uuid into its own pkg 2016-07-30 00:07:02 -04:00
meta.go add ClusterName field to ObjectMeta 2016-08-22 21:09:57 -07:00
node_example.json
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
ref_test.go Use make as the main build tool 2016-07-12 21:52:00 -07:00
ref.go move api.OjbectReference.ObjectKind() to ref.go 2016-07-14 23:02:05 -07:00
register.go Fix various typos in pkg/api 2016-08-29 11:31:16 +02:00
replication_controller_example.json Initial Quobyte support 2016-08-18 17:13:50 +02:00
requestcontext.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
resource_helpers.go Fix various typos in pkg/api 2016-08-29 11:31:16 +02:00
serialization_proto_test.go Convert() should accept the new conversion Context value 2016-08-18 14:45:20 -04:00
serialization_test.go Convert() should accept the new conversion Context value 2016-08-18 14:45:20 -04:00
types.generated.go Run hack/update-all.sh 2016-08-25 13:22:01 +02:00
types.go Fix various typos in pkg/api 2016-08-29 11:31:16 +02:00
zz_generated.deepcopy.go Run hack/update-all.sh 2016-08-25 13:22:01 +02:00