mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-30 21:33:53 +00:00
Skip SetVersionAndKind for ConvertToVersion to internal
This commit is contained in:
@@ -363,8 +363,10 @@ func (s *Scheme) ConvertToVersion(in interface{}, outVersion string) (interface{
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := s.SetVersionAndKind(outVersion, outKind.Kind, out); err != nil {
|
if len(outVersion) != 0 {
|
||||||
return nil, err
|
if err := s.SetVersionAndKind(outVersion, outKind.Kind, out); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return out, nil
|
return out, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user