kubernetes/pkg/kubectl/cmd/util
Kubernetes Submit Queue b9d2d74a94 Merge pull request #37038 from ymqytw/retry_old_patch_after_new_patch_fail
Automatic merge from submit-queue

Fix kubectl Stratigic Merge Patch compatibility

As @smarterclayton pointed out in [comment1](https://github.com/kubernetes/kubernetes/pull/35647#pullrequestreview-8290820) and [comment2](https://github.com/kubernetes/kubernetes/pull/35647#pullrequestreview-8290847) in PR #35647,
we cannot assume the API servers publish version and they shares the same version.

This PR removes all the calls of GetServerSupportedSMPatchVersion().
Change the behavior of `apply` and `edit` to:
Retrying with the old patch version, if the new version fails.
Default other usage of SMPatch to the new version, since they don't update list of primitives.

fixes #36916

cc: @pwittrock @smarterclayton
2016-11-19 01:02:47 -08:00
..
editor autogenerated 2016-10-21 17:32:32 -07:00
jsonmerge autogenerated 2016-10-21 17:32:32 -07:00
sanity autogenerated 2016-10-21 17:32:32 -07:00
BUILD Update bazel 2016-11-04 21:17:12 +01:00
cached_discovery_test.go Add caching for discovery info 2016-11-04 21:17:12 +01:00
cached_discovery.go Add caching for discovery info 2016-11-04 21:17:12 +01:00
clientcache.go clean up client version negotiation to handle no legacy API 2016-10-31 16:05:50 -04:00
factory_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
factory.go remove TPR registration, ease validation requirements 2016-11-16 14:04:35 -05:00
helpers_test.go remove testapi.Default.GroupVersion 2016-10-07 10:10:54 -04:00
helpers.go try old patch after new patch fails 2016-11-17 14:28:09 -08:00
printing.go update PrintSuccess message when using --dry-run 2016-09-15 10:11:21 -04:00
shortcut_restmapper_test.go Rename PetSet API to StatefulSet 2016-10-27 17:25:10 -07:00
shortcut_restmapper.go Add caching for discovery info 2016-11-04 21:17:12 +01:00