Allow mismatched type names on all conversions

Allows v1beta3.Node to be converted to api.Minion
This commit is contained in:
Clayton Coleman
2014-12-07 22:31:07 -05:00
parent edeb96dca9
commit 279df03377
3 changed files with 42 additions and 6 deletions

View File

@@ -97,9 +97,6 @@ func (s *Scheme) DecodeInto(data []byte, obj interface{}) error {
// correct type.
dataKind = objKind
}
if dataKind != objKind {
return fmt.Errorf("data of kind '%v', obj of type '%v'", dataKind, objKind)
}
if dataVersion == "" {
// Assume objects with unset Version fields are being unmarshalled into the
// correct type.