Commit dc862ae4 authored by Clayton Coleman's avatar Clayton Coleman

Return the Kind of the object with the RESTMapper

parent 778a50d0
...@@ -83,6 +83,7 @@ type RESTMapping struct { ...@@ -83,6 +83,7 @@ type RESTMapping struct {
// APIVersion represents the APIVersion that represents the resource as presented. It is provided // APIVersion represents the APIVersion that represents the resource as presented. It is provided
// for convenience for passing around a consistent mapping. // for convenience for passing around a consistent mapping.
APIVersion string APIVersion string
Kind string
runtime.Codec runtime.Codec
MetadataAccessor MetadataAccessor
......
...@@ -157,8 +157,10 @@ func (m *DefaultRESTMapper) RESTMapping(version, kind string) (*RESTMapping, err ...@@ -157,8 +157,10 @@ func (m *DefaultRESTMapper) RESTMapping(version, kind string) (*RESTMapping, err
} }
return &RESTMapping{ return &RESTMapping{
Resource: resource, Resource: resource,
APIVersion: version, APIVersion: version,
Kind: kind,
Codec: interfaces.Codec, Codec: interfaces.Codec,
MetadataAccessor: interfaces.MetadataAccessor, MetadataAccessor: interfaces.MetadataAccessor,
}, nil }, nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment