David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Chao Xu
d9f07925be
let dynamic client handle non-registered ListOptions;
...
register ListOptions for apis/policy
2016-06-22 13:18:50 -07:00
Clayton Coleman
36a5ffbe2f
Remove EncodeToStream(..., []unversioned.GroupVersion)
...
Was not being used.
2016-06-10 18:43:12 -04:00
Clayton Coleman
8b01cfe1eb
Serialization test should verify encode does not mutate in
2016-05-28 08:53:22 -04:00
Clayton Coleman
404a1b1dc5
Remove alpha init containers from benchmarks (skews results)
2016-05-28 08:52:04 -04:00
Clayton Coleman
51b624103f
Change ConvertToVersion to use GroupVersion
...
Long delayed refactor, avoids a few more allocations.
2016-05-12 10:10:35 -04:00
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
Clayton Coleman
84dee0d9cc
Frame decoder was checking cap(), not len()
...
Resulted in bytes being missing from the streaming decoder. Update both
parts.
2016-04-30 17:57:17 -04:00
Clayton Coleman
d0a7b93050
Slightly more effective conversion test (better variety)
2016-04-27 23:11:25 -04:00
goltermann
a3104ba96c
Final vet fixes; enabling vet checks in verify scripts.
2016-04-13 13:51:51 -07:00
Clayton Coleman
3474911736
Implement a streaming serializer for watch
...
Changeover watch to use streaming serialization. Properly version the
watch objects. Implement simple framing for JSON and Protobuf (but not
YAML).
2016-04-11 11:22:05 -04:00
k8s-merge-robot
1ad3049ed6
Merge pull request #23288 from smarterclayton/refactor_codec
...
Auto commit by PR queue bot
2016-03-26 10:47:58 -07:00
Clayton Coleman
54eaa56b92
Add a streaming and "raw" abstraction to codec factory
2016-03-23 17:25:20 -04:00
harry
b0900bf0d4
Refactor diff into sub pkg
2016-03-21 20:21:39 +08:00
Madhusudan.C.S
b69ec9faff
Teach serde test to deal with autoscaling group's duality.
2016-02-25 15:05:28 -08:00
Piotr Szczesniak
c02e966d65
Applied comments from the review
2016-02-18 14:18:39 +01:00
Mike Danese
216a35d988
run serialization tests on all apigroups registered in testapi
2016-02-03 17:41:02 -08:00
Clayton Coleman
c1d932e44a
Switch API objects to not register per version codecs
...
Remove Codec from versionInterfaces in meta (RESTMapper is now agnostic
to codec and serialization). Register api/latest.Codecs as the codec
factory and use latest.Codecs.LegacyCodec(version) as an equvialent to
the previous codec.
2016-01-22 01:10:21 -05:00
Wojciech Tyczynski
1803a11557
Get rid of rubbish logs from serialization_test
2015-12-28 12:13:07 +01:00
deads2k
d41e7ecf53
miscellaneous group version updates
2015-12-21 09:52:50 -05:00
Brendan Burns
2efcccf981
Add a server side export facility
2015-12-16 15:01:13 -08:00
k8s-merge-robot
266ab4a796
Merge pull request #18487 from smarterclayton/guard_encode_decode
...
Auto commit by PR queue bot
2015-12-13 23:08:18 -08:00
Clayton Coleman
1e21054134
Hide common codec methods under helpers
...
The pending codec -> conversion split changes the signature of
Encode and Decode to be more complicated. Create a stub helper
with the exact semantics of today and do the simple mechanical
refactor here to reduce the cost of that change.
2015-12-09 21:15:02 -05:00
deads2k
519b4e80d1
update NewObject for groupversionkind
2015-12-09 08:13:15 -05:00
deads2k
2ee3dfe415
update testapi to eliminate redundant fields
2015-12-07 15:54:26 -05:00
deads2k
f764e0099c
Update ObjectTyper to GroupVersion
2015-12-07 08:35:05 -05:00
Clayton Coleman
9fea762917
Add protobuf preparation objects, guarded by proto tag
2015-12-05 18:15:48 -05:00
k8s-merge-robot
77e9066ebb
Merge pull request #17099 from feihujiang/moveDefaultingFuncsFromInternalToV1
...
Auto commit by PR queue bot
2015-12-01 07:13:26 -08:00
Clayton Coleman
e9e02bdd50
Review comments
2015-11-26 11:53:38 -05:00
Clayton Coleman
9d19238f6c
Fix tests to pass with changed external types
2015-11-26 11:53:37 -05:00
deads2k
ed95a6d77f
update scheme to use GroupVersion
2015-11-25 12:15:48 -05:00
feihujiang
8cf6d785b7
Move defaulting funcs from internal to v1
2015-11-11 15:09:16 +08:00
Jordan Liggitt
3bc4abb9aa
Add TypeMeta to discovery response objects
2015-10-27 10:27:13 -04:00
Chao Xu
67f316dd19
apis/experimental->apis/extensions
2015-10-09 15:04:41 -07:00
Chao Xu
0b7e3c7dd1
experimental/v1alpha1->extensions/v1beta1
2015-10-09 15:01:33 -07:00
Paul Morie
227dd82119
Add PodSecurityContext and backward compatibility tests
2015-10-05 21:05:27 -04:00
Chao Xu
ae1293418b
move experimental/v1 to experimental/v1alpha1;
...
use "group/version" in many places where used to expect "version" only.
2015-09-24 15:32:11 -07:00
Chao Xu
64bf839e9f
refactor tests to use testapi rather than latest directly
2015-09-11 17:32:23 -07:00
Chao Xu
dd6c121d7f
massive changes
2015-09-11 17:31:47 -07:00
Daniel Smith
4c2adabf42
move; sed replace
2015-09-11 16:03:22 -07:00
tummychow
78ce5da988
Move util.StringSet into its own package
...
A lot of packages use StringSet, but they don't use anything else from
the util package. Moving StringSet into another package will shrink
their dependency trees significantly.
2015-09-10 12:04:15 -07:00
k8s-merge-robot
0f1525ce9b
Merge pull request #13678 from pmorie/serialization-debug
...
Auto commit by PR queue bot
2015-09-08 16:37:18 -07:00
Paul Morie
502492f3ed
Make serialization tests easier to debug
2015-09-08 13:19:08 -04:00
Chao Xu
9fc79e9d99
refactor testapi and test scripts to prepare for multiple API groups.
2015-09-04 18:01:32 -07:00
Chao Xu
fc9c2ddf0c
add a fuzz function for expapi.APIVersion
2015-08-26 15:23:36 -07:00
Marcin Wielgus
9d466abd55
Serialization_test quick fix (remove exapi)
2015-08-24 13:13:14 +02:00
Brendan Burns
5d664892f2
Add a storage implementation for thirdpartyresources.
2015-08-21 17:21:40 -07:00
Jerzy Szczepkowski
b337458ab6
Merge pull request #12993 from mikedanese/rtexpapi
...
fix roundtrip bug and add expapi to round trip serialization tests
2015-08-21 10:27:17 +02:00
Mike Danese
a6d1b87336
fix roundtrip bug and add expapi to round trip serialization tests
2015-08-20 13:58:03 -07:00
Clayton Coleman
02dbb95447
Add TerminationGracePeriodSeconds to API
...
Set defaulting for pod spec
2015-08-20 11:03:38 -04:00