Add UID to MetaAccessor and Ref

This commit is contained in:
Clayton Coleman
2014-10-22 22:59:15 -04:00
parent 1ccb86c760
commit 35eaf90255
6 changed files with 32 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ func GetReference(obj runtime.Object) (*ObjectReference, error) {
APIVersion: version[1],
// TODO: correct Name and UID when TypeMeta makes a distinction
Name: accessor.Name(),
UID: accessor.Name(),
UID: accessor.UID(),
ResourceVersion: accessor.ResourceVersion(),
}, nil
}