Add self links to objects sent down the watch channel.

This commit is contained in:
Daniel Smith
2014-11-05 17:22:18 -08:00
parent f4cffdc7cf
commit 4196780eda
5 changed files with 85 additions and 22 deletions

View File

@@ -46,7 +46,7 @@ func GetReference(obj runtime.Object) (*ObjectReference, error) {
}
version := versionFromSelfLink.FindStringSubmatch(meta.SelfLink())
if len(version) < 2 {
return nil, fmt.Errorf("unexpected self link format: %v", meta.SelfLink())
return nil, fmt.Errorf("unexpected self link format: '%v'; got version '%v'", meta.SelfLink(), version)
}
return &ObjectReference{
Kind: kind,