Skip to content

Commit 01aec16

Browse files
authored
Fix sourceLocator in render dashboard (#212)
Signed-off-by: Tamal Saha <[email protected]>
1 parent 63561d3 commit 01aec16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/registry/meta/renderdashboard/storage.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ func (r *Storage) Create(ctx context.Context, obj runtime.Object, _ rest.Validat
104104
}
105105
gvr = rid.GroupVersionResource()
106106

107-
var src unstructured.Unstructured
107+
src = &unstructured.Unstructured{}
108108
src.SetGroupVersionKind(rid.GroupVersionKind())
109-
err = r.kc.Get(context.TODO(), req.SourceLocator.Ref.ObjectKey(), &src)
109+
err = r.kc.Get(context.TODO(), req.SourceLocator.Ref.ObjectKey(), src)
110110
if err != nil {
111111
return nil, err
112112
}

0 commit comments

Comments
 (0)