Merge pull request #76270 from liggitt/type-alias

Add type alias for DirectCodecFactory -> WithoutConversionCodecFactory
k3s-v1.15.3
Kubernetes Prow Robot 2019-04-08 17:27:16 -07:00 committed by GitHub
commit 6b9dc653b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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