mirror of https://github.com/k3s-io/k3s
Merge pull request #76270 from liggitt/type-alias
Add type alias for DirectCodecFactory -> WithoutConversionCodecFactoryk3s-v1.15.3
commit
6b9dc653b4
|
@ -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 {
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue