• Clayton Coleman's avatar
    Split the storage and negotiation parts of Codecs · e0ebcf42
    Clayton Coleman authored
    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).
    e0ebcf42
Name
Last commit
Last update
..
cachesize Loading commit data...
componentstatus Loading commit data...
configmap Loading commit data...
controller Loading commit data...
daemonset Loading commit data...
deployment Loading commit data...
endpoint Loading commit data...
event Loading commit data...
experimental/controller/etcd Loading commit data...
generic Loading commit data...
horizontalpodautoscaler Loading commit data...
ingress Loading commit data...
job Loading commit data...
limitrange Loading commit data...
namespace Loading commit data...
node Loading commit data...
persistentvolume Loading commit data...
persistentvolumeclaim Loading commit data...
petset Loading commit data...
pod Loading commit data...
podsecuritypolicy Loading commit data...
podtemplate Loading commit data...
registrytest Loading commit data...
replicaset Loading commit data...
resourcequota Loading commit data...
secret Loading commit data...
service Loading commit data...
serviceaccount Loading commit data...
thirdpartyresource Loading commit data...
thirdpartyresourcedata Loading commit data...
OWNERS Loading commit data...
doc.go Loading commit data...