kubernetes/pkg/kubectl/cmd/util
k8s-merge-robot 0a6a52b19d Merge pull request #26597 from caesarxuchao/fix-26425
Automatic merge from submit-queue

retry GetThirdPartyGroupVersions

GetThirdPartyGroupVersions() may return a "NotFound" error if a thirdparty group is deleted in the interim between the group-discovery and the resource-discovery. This is causing e2e flakes in all tests that run kubectl, because test/e2e/thirdparty.go is creating/deleting thirdparty groups.

Fix #26425

The e2e flakes will have the following pattern:
1. the test is calling kubectl
2. error message is `Error from server: the server could not find the requested resource`
3. in the apiserver log, you should see `GET /apis/company.com/v1: (518.944µs) 404 [[kubectl/v1.3.0 (linux/amd64) kubernetes/ae28564] 104.154.110.118:46043]`

For detail see [here](https://github.com/kubernetes/kubernetes/issues/26425#issuecomment-222844523)

cc @janetkuo @brendanburns
2016-06-01 00:02:43 -07:00
..
editor Improve terminal reuse and attach 2016-03-21 23:59:58 -04:00
jsonmerge move HasConflicts to shareable location 2015-10-05 14:37:57 -04:00
clientcache.go add get/create/delete for clusters 2016-05-16 16:34:08 -07:00
factory_test.go kubectl: move printObjectSpecificMessage in factory 2016-05-28 18:33:58 +02:00
factory.go Merge pull request #26597 from caesarxuchao/fix-26425 2016-06-01 00:02:43 -07:00
helpers_test.go Add support for labelling 3rd party objects 2016-05-23 13:13:35 -07:00
helpers.go Merge pull request #26597 from caesarxuchao/fix-26425 2016-06-01 00:02:43 -07:00
printing.go -t shorthand for --tty instead of --template 2016-04-15 17:12:42 -07:00