kubernetes/pkg/apiserver
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
..
audit Fixed edited regex in audit_test unit test 2016-09-14 14:08:41 -04:00
authenticator pkg/apiserver/authenticator: move oidc after service accounts 2016-08-11 09:41:50 -07:00
metrics Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
testing add generated files 2016-08-22 23:00:23 -07:00
api_installer.go print instruction in case of failed kubectl 1.3 rolling-update against 1.4 cluster 2016-09-15 17:20:39 -07:00
api_installer_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
apiserver.go Improvements on OpenAPI spec generation: 2016-09-12 18:47:03 -07:00
apiserver_test.go implement restful for InstallLogsSupport 2016-08-16 09:09:02 +08:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
errors.go Merge pull request #29045 from lixiaobing10051267/mastererrNotAcceptable 2016-07-19 01:10:41 -07:00
errors_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
handler_impersonation.go allow impersonating user.Info.Extra 2016-08-22 07:43:52 -04:00
handler_impersonation_test.go allow impersonating user.Info.Extra 2016-08-22 07:43:52 -04:00
handlers.go prevent printing of stack trace when proxying 304 requests in api gateway 2016-09-15 14:52:04 +03:00
handlers_test.go Fix various typos in apiserver pkg 2016-08-04 01:15:15 +03:00
index.go Fix various typos in apiserver pkg 2016-08-04 01:15:15 +03:00
mux_helper.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
negotiate.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
negotiate_test.go Introduce GroupVersioner for capturing desired target version 2016-08-18 14:45:00 -04:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
proxy.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
proxy_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
resthandler.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
resthandler_test.go Fix update validation for pods w/init containers. 2016-07-20 00:30:12 +03:00
validator.go Run goimports 2016-08-02 15:12:39 +03:00
validator_test.go Run goimports 2016-08-02 15:12:39 +03:00
watch.go Close websocket watch when client closes 2016-08-17 15:20:05 -04:00
watch_test.go Close websocket watch when client closes 2016-08-17 15:20:05 -04:00