v1beta1 should return Minion as kind, rather than Node
This changes the internal name logic (for conversion) to prefer the internal registered preferred name for a resource, and then makes v1beta1 and v1beta2 prefer Minion. Fixes #3010
This commit is contained in:
@@ -74,6 +74,12 @@ func (s *Scheme) EncodeToVersion(obj interface{}, destVersion string) (data []by
|
||||
obj = objOut
|
||||
}
|
||||
|
||||
// ensure the output object name comes from the destination type
|
||||
_, objKind, err = s.ObjectVersionAndKind(obj)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Version and Kind should be set on the wire.
|
||||
err = s.SetVersionAndKind(destVersion, objKind, obj)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user