mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Fix typo in pkg/runtime/serializer/codec_factory.go
This commit is contained in:
parent
7823c5779d
commit
d3f3bedbb7
@ -215,7 +215,7 @@ func (f CodecFactory) UniversalDecoder(versions ...unversioned.GroupVersion) run
|
||||
return f.CodecForVersions(nil, f.universal, nil, versions)
|
||||
}
|
||||
|
||||
// CodecFor creates a codec with the provided serializer. If an object is decoded and its group is not in the list,
|
||||
// CodecForVersions creates a codec with the provided serializer. If an object is decoded and its group is not in the list,
|
||||
// it will default to runtime.APIVersionInternal. If encode is not specified for an object's group, the object is not
|
||||
// converted. If encode or decode are nil, no conversion is performed.
|
||||
func (f CodecFactory) CodecForVersions(encoder runtime.Encoder, decoder runtime.Decoder, encode []unversioned.GroupVersion, decode []unversioned.GroupVersion) runtime.Codec {
|
||||
|
Loading…
Reference in New Issue
Block a user