Clayton Coleman
6d2a3bdd60
Add a test that verifies all structs have protobuf tags
2017-03-17 00:29:14 -04:00
deads2k
0a74353118
make round trip testing generic
2017-02-09 11:42:22 -05:00
Dr. Stefan Schimanski
55466b51bf
pkg/api/testing: cut off fuzzers from static codecs
2017-02-02 06:58:28 +01:00
Dr. Stefan Schimanski
79adb99a13
pkg/api: move Semantic equality to k8s.io/apimachinery/pkg/api/equality
2017-01-29 21:41:45 +01:00
Dr. Stefan Schimanski
6b6b6c747e
pkg/api/testing: split fuzzer between apimachinery and kube
2017-01-29 21:41:44 +01:00
Clayton Coleman
9a2a50cda7
refactor: use metav1.ObjectMeta in other types
2017-01-17 16:17:19 -05:00
Clayton Coleman
36acd90aba
Move APIs and core code to use metav1.ObjectMeta
2017-01-17 16:17:18 -05:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
Clayton Coleman
35a6bfbcee
generated: refactor
2016-11-23 22:30:47 -06: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
Mike Danese
25e4dccefe
kubeadm: fix conversion macros and add kubeadm to round trip testing
2016-10-12 13:26:23 -07:00
Mike Danese
d9cc8119ef
allow apigroups to opt out of proto round trip testing
2016-10-12 10:01:38 -07:00
Clayton Coleman
5f8366aac3
Convert() should accept the new conversion Context value
...
Allows Convert() to reuse the same conversions as ConvertToVersion
without being overly coupled to the version.
2016-08-18 14:45:20 -04:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Clayton Coleman
36a5ffbe2f
Remove EncodeToStream(..., []unversioned.GroupVersion)
...
Was not being used.
2016-06-10 18:43:12 -04:00
Clayton Coleman
c6961d6fd6
Remove runtime.Typer, reduce to ObjectKinds(1) (3)
...
Remove the unnecessary variants, which avoids allocations in several
core paths.
2016-05-21 23:55:42 -04:00
Clayton Coleman
6685715c4c
API for adding init containers
2016-05-17 00:29:49 -04:00
Clayton Coleman
9ebfa1db2f
Add a proto full decode benchmark
2016-05-07 11:55:31 -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
4ad5565c41
RecognizingDecoder didn't handle ambiguous input
...
YAML is not guaranteed to be recognizable, so we need to bump JSON and
protobuf above it in the decoding order. Add a unit test.
2016-05-05 12:08:22 -04:00
Clayton Coleman
cea4c010a6
Strip the proto build guard
2016-04-20 12:12:29 -04: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
Clayton Coleman
f2139b186c
Add an experimental protobuf serializer
...
Provide a core protobuf serializer that can either write objects with
an envelope (a 4 byte prefix and a runtime.Object) or raw to a byte
array.
2016-03-31 10:41:11 -04:00
harry
b0900bf0d4
Refactor diff into sub pkg
2016-03-21 20:21:39 +08:00
Clayton Coleman
9fea762917
Add protobuf preparation objects, guarded by proto tag
2015-12-05 18:15:48 -05:00