Return the Kind of the object with the RESTMapper

This commit is contained in:
Clayton Coleman 2014-11-02 09:21:25 -05:00
parent 778a50d00b
commit dc862ae463
2 changed files with 5 additions and 2 deletions

View File

@ -83,6 +83,7 @@ type RESTMapping struct {
// APIVersion represents the APIVersion that represents the resource as presented. It is provided
// for convenience for passing around a consistent mapping.
APIVersion string
Kind string
runtime.Codec
MetadataAccessor

View File

@ -157,8 +157,10 @@ func (m *DefaultRESTMapper) RESTMapping(version, kind string) (*RESTMapping, err
}
return &RESTMapping{
Resource: resource,
APIVersion: version,
Resource: resource,
APIVersion: version,
Kind: kind,
Codec: interfaces.Codec,
MetadataAccessor: interfaces.MetadataAccessor,
}, nil