Clayton Coleman
e0ebcf4216
Split the storage and negotiation parts of Codecs
...
The codec factory should support two distinct interfaces - negotiating
for a serializer with a client, vs reading or writing data to a storage
form (etcd, disk, etc). Make the EncodeForVersion and DecodeToVersion
methods only take Encoder and Decoder, and slight refactoring elsewhere.
In the storage factory, use a content type to control what serializer to
pick, and use the universal deserializer. This ensures that storage can
read JSON (which might be from older objects) while only writing
protobuf. Add exceptions for those resources that may not be able to
write to protobuf (specifically third party resources, but potentially
others in the future).
2016-05-05 12:08:23 -04:00
k8s-merge-robot
93e3df8e55
Merge pull request #24789 from wojtek-t/use_proper_codec_in_client
...
Automatic merge from submit-queue
Use proper codec in client
2016-05-04 11:00:04 -07:00
Wojciech Tyczynski
3aadafd411
Use NegotiatedSerializer in client
2016-05-04 10:57:36 +02:00
Kris
28132be07e
Redo Unstructured to have accessor methods
...
Add accessor methods that implement pkg/api/unversioned.ObjectKind,
pkg/api/meta.Object, pkg/api/meta.Type and pkg/api/meta.List.
Removed the convenience fields since writing to them was not reflected
in serialized JSON.
2016-05-03 14:07:28 -07:00
k8s-merge-robot
d0b887e4e0
Merge pull request #24595 from zhouhaibing089/httpserverclose
...
Automatic merge from submit-queue
Uncomment the code that caused by #19254
Fix https://github.com/kubernetes/kubernetes/issues/24546 .
@lavalamp
2016-04-28 01:41:16 -07:00
zhouhaibing089
bf1a3f99c0
Uncomment the code that cause by #19254
2016-04-25 23:21:31 +08:00
Maciej Szulik
c470afc206
Generated changes for moving job internals from pkg/apis/extensions to pkg/apis/batch
2016-04-25 11:03:57 +02:00
Chao Xu
8537095415
use fully qualified resource in fake clients actions
2016-04-20 19:44:40 -07:00
Chao Xu
31cd4c124d
handle empty perferredVersion
2016-04-13 13:18:31 -07:00
k8s-merge-robot
f6fac0e4de
Merge pull request #23443 from goltermann/vet2
...
Auto commit by PR queue bot
2016-03-25 23:43:44 -07:00
Chao Xu
3aa26565fc
move fake discovery client to pkg/client/typed/discovery/fake
2016-03-25 16:02:08 -07:00
goltermann
32d569d6c7
Fixing all the "composite literal uses unkeyed fields" Vet errors.
2016-03-25 15:25:09 -07:00
k8s-merge-robot
460ece34d5
Merge pull request #22928 from caesarxuchao/print-client-gen-command
...
Auto commit by PR queue bot
2016-03-16 00:38:39 -07:00
Chao Xu
ec02dfc9f0
generated changes
2016-03-14 10:28:20 -07:00
deads2k
7fdbea8a53
add user-agent defaulting for discovery
2016-03-10 13:32:31 -05:00
Kris
dbde4fd798
Move the discovery client to its own package
2016-03-04 13:44:52 -08:00
Abhi Shah
b25a48d605
Revert "Move discovery client to its own package"
2016-03-04 09:24:54 -08:00
Abhi Shah
627edd2588
Merge pull request #22016 from krousey/discbreak
...
Move discovery client to its own package
2016-03-04 09:17:46 -08:00
derekwaynecarr
3bda581957
Add ability to manage a pool of dynamic clients
2016-03-02 23:23:06 -05:00
Kris
f22664159e
Move the discovery client to its own package
2016-02-29 15:37:21 -08:00
Kris
e664ef922f
Move restclient to its own package
2016-02-29 12:05:13 -08:00
k8s-merge-robot
c3a962bff5
Merge pull request #20351 from krousey/dynamic_client
...
Auto commit by PR queue bot
2016-02-19 10:00:54 -08:00
Chao Xu
ad46715f51
generate fake client for release_1_2
2016-02-17 16:10:02 -08:00
Kris
4c58302b5b
Adding dynamic client
2016-02-12 11:49:00 -08:00
Chao Xu
1c84552757
generate the versioned clientset
2016-02-10 17:22:46 -08:00
deads2k
6d71421ae1
eliminate mixed case from RESTMapper
2016-02-08 15:33:31 -05:00
Chao Xu
1b047f8e67
rename legacy to core
2016-02-04 14:26:56 -08:00
derekwaynecarr
070dce1bec
Fix DeleteCollection in FakeClient
2016-02-03 14:39:24 -05:00
Chao Xu
cddd7b56a4
replace client with clientset in kubelet and other places
2016-02-02 20:28:45 -08:00
Chao Xu
fe7887f1ec
replace the client with clientset in controllers
2016-02-02 20:28:45 -08:00
Chao Xu
7722a50647
generate client for replicaset
2016-01-31 15:42:03 -08:00
Chao Xu
c72d234bbf
replacing handwritten client in several controllers
2016-01-31 15:42:02 -08:00
Chao Xu
55f039fd53
add an adapter for EventSink
2016-01-31 11:36:36 -08:00
Clayton Coleman
8692d260f8
Use Parameter codec in request.VersionedParams()
2016-01-30 14:14:20 -05:00
Chao Xu
8531ef4979
change ingress and componentstatus plural form
2016-01-29 11:21:04 -08:00
Chao Xu
c7ca0821da
Add service_expansion.go
2016-01-26 17:09:11 -08:00
k8s-merge-robot
67939eb933
Merge pull request #19958 from caesarxuchao/fix-resource-case
...
Auto commit by PR queue bot
2016-01-26 16:46:41 -08:00
Clayton Coleman
3262d8efd8
GENERATED: all
2016-01-22 13:27:28 -05:00
Clayton Coleman
efe88e0818
Update client library to react to changes in Decoding
2016-01-22 13:27:24 -05:00
Chao Xu
0734248e42
Use lowercase names in individual typed clients
2016-01-21 15:01:47 -08:00
Chao Xu
030043b5be
Ingress's plural
2016-01-21 15:01:47 -08:00
nikhiljindal
2ad642d370
Merge registered and latest and move to apimachinery
2016-01-21 14:42:21 -08:00
k8s-merge-robot
03ecde1277
Merge pull request #17535 from mesosphere/jdef_abspath_breaks_proxies
...
Auto commit by PR queue bot
2016-01-20 21:46:47 -08:00
Chao Xu
ee6f03f55a
Fix UpdateStatus
2016-01-20 21:15:07 -08:00
Chao Xu
fb81b2278e
client-gen now generates the fake client.
2016-01-19 17:27:17 -08:00
James DeFelice
75f487f7bf
AbsPath should be compatible with proxy-prefixes:
...
- replace Config.Prefix with .Host and .APIPath
- Request .path promoted to .pathPrefix, .baseURL holds required prefix
2016-01-20 00:31:58 +00:00
Chao Xu
b8be5e1340
generate client for scale, which has only the expansion interface
2016-01-14 12:14:00 -08:00
Chao Xu
ec9771ccb6
add nonNamespaced comment tag; change the interface name
2016-01-14 10:46:08 -08:00
k8s-merge-robot
5007d7c4a9
Merge pull request #19492 from caesarxuchao/add-manual-methods
...
Auto commit by PR queue bot
2016-01-13 16:53:42 -08:00
k8s-merge-robot
ec78f3d5a9
Merge pull request #19349 from caesarxuchao/generate-updatestatus
...
Auto commit by PR queue bot
2016-01-13 16:51:33 -08:00