mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 14:11:14 +00:00
Merge pull request #2189 from lavalamp/fix
Add self links to objects sent down the watch channel.
This commit is contained in:
@@ -50,7 +50,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,
|
||||
|
Reference in New Issue
Block a user