Rename JSONBase -> TypeMeta in preparation for v1beta3
Will make subsequent refactor much easier
This commit is contained in:
@@ -29,7 +29,7 @@ var versionFromSelfLink = regexp.MustCompile("/api/([^/]*)/")
|
||||
// object, or an error if the object doesn't follow the conventions
|
||||
// that would allow this.
|
||||
func GetReference(obj runtime.Object) (*ObjectReference, error) {
|
||||
jsonBase, err := runtime.FindJSONBase(obj)
|
||||
jsonBase, err := runtime.FindTypeMeta(obj)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -44,7 +44,7 @@ func GetReference(obj runtime.Object) (*ObjectReference, error) {
|
||||
return &ObjectReference{
|
||||
Kind: kind,
|
||||
APIVersion: version[1],
|
||||
// TODO: correct Name and UID when JSONBase makes a distinction
|
||||
// TODO: correct Name and UID when TypeMeta makes a distinction
|
||||
Name: jsonBase.ID(),
|
||||
UID: jsonBase.ID(),
|
||||
ResourceVersion: jsonBase.ResourceVersion(),
|
||||
|
Reference in New Issue
Block a user