From 16c5e9b6325aeaa6b7382564cb5dec38be115557 Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Thu, 21 Jun 2018 16:06:20 -0700 Subject: [PATCH] Include namespace to not found msg --- generator/controller_template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/controller_template.go b/generator/controller_template.go index 65efc848c..2f0d6a622 100644 --- a/generator/controller_template.go +++ b/generator/controller_template.go @@ -102,7 +102,7 @@ func (l *{{.schema.ID}}Lister) Get(namespace, name string) (*{{.prefix}}{{.schem return nil, errors.NewNotFound(schema.GroupResource{ Group: {{.schema.CodeName}}GroupVersionKind.Group, Resource: "{{.schema.ID}}", - }, name) + }, key) } return obj.(*{{.prefix}}{{.schema.CodeName}}), nil }