Clayton Coleman
9009c1ac14
generated: informer,client
2017-01-23 17:52:47 -05:00
Clayton Coleman
469df12038
refactor: move ListOptions references to metav1
2017-01-23 17:52:46 -05:00
Clayton Coleman
df831db360
Break dependency on testapi from core packages
2017-01-23 16:53:13 -05:00
deads2k
9c6a522882
mechanical results of client auth plugin
2017-01-20 08:05:18 -05:00
deads2k
ee6752ef20
find and replace
2017-01-20 08:04:53 -05:00
deads2k
c587b8a21e
re-run client-gen
2017-01-20 08:02:36 -05:00
deads2k
c47717134b
move utils used in restclient to client-go
2017-01-19 07:55:14 -05:00
deads2k
6c6616b41c
move restclient/watch
2017-01-19 07:39:20 -05:00
Kubernetes Submit Queue
f7305e6f43
Merge pull request #39974 from deads2k/api-60-move-patch
...
Automatic merge from submit-queue
Move PatchType to apimachinery/pkg/types
Fixes https://github.com/kubernetes/kubernetes/issues/39970
`PatchType` is shared by the client and server, they have to agree, and its critical for our API to function.
@smarterclayton @kubernetes/sig-api-machinery-misc
2017-01-17 07:29:06 -08:00
deads2k
f31ecdd0f7
generated changes
2017-01-17 08:32:05 -05:00
deads2k
26c46971f2
move PatchType to apimachinery
2017-01-17 08:32:05 -05:00
Dr. Stefan Schimanski
52f6831576
genericapiserver: cut off kube pkg/version dependency
2017-01-17 12:34:05 +01:00
deads2k
77b4d55982
mechanical
2017-01-16 09:35:12 -05:00
deads2k
f1176d9c5c
mechanical repercussions
2017-01-13 08:27:14 -05:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
Clayton Coleman
c5d755dbec
Refactor tests to match new versioned code structure
2017-01-06 23:45:03 -05:00
Clayton Coleman
e5019de260
refactor: Move versioned/watch to meta/v1
2017-01-06 23:45:03 -05:00
Jeff Grafton
20d221f75c
Enable auto-generating sources rules
2017-01-05 14:14:13 -08:00
Mike Danese
161c391f44
autogenerated
2016-12-29 13:04:10 -08:00
Daniel Smith
ae461f8a1f
Update OWNERS
2016-12-19 16:05:48 -08:00
Antoine Pelisse
491fe7fde0
Update OWNERS approvers and reviewers: pkg/client
2016-12-19 16:04:55 -08:00
Mike Danese
c87de85347
autoupdate BUILD files
2016-12-12 13:30:07 -08:00
Clayton Coleman
c52d510a24
refactor: generated
2016-12-10 18:05:53 -05:00
Clayton Coleman
42d410fdde
Switch to use pkg/apis/meta/v1/unstructured and the new interfaces
...
Avoid directly accessing an unstructured type if it is not required.
2016-12-10 18:05:28 -05:00
Kubernetes Submit Queue
653fd97ba0
Merge pull request #37966 from p0lyn0mial/unify_restmapping_and_restmappings
...
Automatic merge from submit-queue (batch tested with PRs 38185, 37966)
decided to extract common logic for RESTMapping and RESTMappings to a…
<!-- Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
-->
**What this PR does / why we need it**: the changes introduced in this PR extract common logic of RESTMapping and RESTMappings to one common method.
**Special notes for your reviewer**: this is my first PR - be polite.
The only change in logic to what was before is when calling commonRESTMappings from RESTMapping
we search all defaultGroupVersion as opposed to just one when no mapping was found for provided versions.
2016-12-06 06:49:25 -08:00
p0lyn0mial
5f8e774517
extended RESTMappings method by a version parameter.
...
RESTMapping method can now rely on RESTMappings by passing versions parameter and taking the first match found by RESTMappings method. In addition
a UT that test the new method has been added.
The only change in logic to what was before is when calling RESTMapping
we search all defaultGroupVersion as opposed to just one when no mapping was found for provided versions.
2016-12-05 20:09:36 +01:00
Dr. Stefan Schimanski
2dff13f332
Update generated files
2016-12-05 12:42:31 +01:00
Dr. Stefan Schimanski
458d2b2fe4
Add verb support for discovery client
2016-12-05 12:36:05 +01:00
Clayton Coleman
3454a8d52c
refactor: update bazel, codec, and gofmt
2016-12-03 19:10:53 -05:00
Clayton Coleman
5df8cc39c9
refactor: generated
2016-12-03 19:10:46 -05:00
Clayton Coleman
35a6bfbcee
generated: refactor
2016-11-23 22:30:47 -06:00
Maciej Szulik
4401c814fc
Read resources from all versions for finalization and gc
...
If the same resource exists in more then one version, only the preferred
version one will be returned.
2016-11-18 23:31:52 +01:00
Dr. Stefan Schimanski
c8513c31a1
Update bazel
2016-11-04 21:17:12 +01:00
Dr. Stefan Schimanski
14ce6f6065
Add caching for discovery info
2016-11-04 21:17:12 +01:00
Kubernetes Submit Queue
f91cd17821
Merge pull request #35799 from deads2k/client-17-negotiation
...
Automatic merge from submit-queue
clean up client version negotiation to handle no legacy API
Version negotiation fails if the legacy API endpoint isn't available.
This tightens up the negotiation interface based to more clearly express what each stage is doing and what the constraints on negotiation are. This is needed to speak to generic API servers.
@kubernetes/kubectl
2016-11-03 07:53:47 -07:00
deads2k
bae940df5c
clean up client version negotiation to handle no legacy API
2016-10-31 16:05:50 -04:00
Chao Xu
fd2fdfba89
move client/unversioned/fake to client/restclient/fake
2016-10-29 14:22:02 -07:00
Clayton Coleman
ca2f1b87ad
Replace negotiation with a new method that can extract info
...
Alter how runtime.SerializeInfo is represented to simplify negotiation
and reduce the need to allocate during negotiation. Simplify the dynamic
client's logic around negotiating type. Add more tests for media type
handling where necessary.
2016-10-28 11:30:11 -04:00
deads2k
81ae13084d
handle non-generated client removal
2016-10-26 16:10:41 -04:00
Mike Danese
3b6a067afc
autogenerated
2016-10-21 17:32:32 -07:00
Jan Chaloupka
6079053407
Update clientset generator to use RESTClient interface instead of the RESTClient data type
2016-10-21 10:13:51 +02:00
Kubernetes Submit Queue
6d56d0337a
Merge pull request #33234 from caesarxuchao/retry-discovery-failure
...
Automatic merge from submit-queue
Discovery client retry when failed to discovery resrouces
Fix #32308
`ServerPreferredNamespacedResources()` fails if in the middle of its execution, the TPR e2e tests change the supported resources on the API server. This PR let the e2e test framework retry `ServerPreferredNamespacedResources()`.
cc @lavalamp
2016-10-07 05:13:21 -07:00
Chao Xu
04ac4a4020
discovery client retry serverPreferredResources() in case groups changed in the middle
2016-10-04 21:49:53 -07:00
Clayton Coleman
97c35fcc67
Allow garbage collection to work against different API prefixes
...
The GC needs to build clients based only on Resource or Kind. Hoist the
restmapper out of the controller and the clientpool, support a new
ClientForGroupVersionKind and ClientForGroupVersionResource, and use the
appropriate one in both places.
2016-09-22 15:00:58 -04:00
deads2k
4359c79f53
add FirstHitRESTMapper for adding thirdparty resources
2016-09-15 10:26:39 -04:00
Clayton Coleman
88b64a7a82
Use a structured error rather than an Aggregate error in discovery
...
Should provide more information for debugging the root cause of
discovery failures.
2016-09-07 10:59:03 -04:00
Kara Alexandra
d12a66a422
Rename IsEmpty to Empty
...
Signed-off-by: Kara Alexandra <kalexandra@us.ibm.com>
2016-08-19 14:19:19 -07:00
Kris
63a512fe47
Add discovery mapper and dynamic typer to kubectl
2016-08-15 22:07:54 -07:00
Kris
3999f071d1
Add generic "List" type for all versions
2016-08-15 22:07:54 -07:00
Kris
e5c2154883
Eliminate redundant dynamic client type
...
This will allow people to override the default parameter codec and still
pass the resulting client with something that accepts *dynamic.Client.
2016-08-15 14:18:40 -07:00