Commit 104746f9 authored by Jordan Liggitt's avatar Jordan Liggitt

Add type alias for DirectCodecFactory -> WithoutConversionCodecFactory

parent 20cece67
...@@ -256,3 +256,7 @@ func (f WithoutConversionCodecFactory) DecoderToVersion(serializer runtime.Decod ...@@ -256,3 +256,7 @@ func (f WithoutConversionCodecFactory) DecoderToVersion(serializer runtime.Decod
Decoder: serializer, Decoder: serializer,
} }
} }
// DirectCodecFactory was renamed to WithoutConversionCodecFactory in 1.15.
// TODO: remove in 1.16.
type DirectCodecFactory = WithoutConversionCodecFactory
...@@ -234,8 +234,10 @@ func (c *codec) Encode(obj runtime.Object, w io.Writer) error { ...@@ -234,8 +234,10 @@ func (c *codec) Encode(obj runtime.Object, w io.Writer) error {
return err return err
} }
// DirectEncoder was movend and renamed in 1.15 and will be removed in 1.16. // DirectEncoder was moved and renamed to runtime.WithVersionEncoder in 1.15.
// TODO: remove in 1.16.
type DirectEncoder = runtime.WithVersionEncoder type DirectEncoder = runtime.WithVersionEncoder
// DirectDecoder was movend and renamed in 1.15 and will be removed in 1.16. // DirectDecoder was moved and renamed to runtime.WithoutVersionDecoder in 1.15.
// TODO: remove in 1.16.
type DirectDecoder = runtime.WithoutVersionDecoder type DirectDecoder = runtime.WithoutVersionDecoder
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment