From 7113b217244d9bbd751a2eb7e3435851ea974cd6 Mon Sep 17 00:00:00 2001 From: Jake Hyde Date: Fri, 10 Jun 2022 18:23:49 -0400 Subject: [PATCH] Update Deprecated comment in controller template Deprecated comments should begin with "Deprecated:" so it is recognized by modern linters. --- 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 124e2095..b34d11e0 100644 --- a/generator/controller_template.go +++ b/generator/controller_template.go @@ -48,7 +48,7 @@ func init() { resource.Put({{.schema.CodeName}}GroupVersionResource) } -// Deprecated use {{.prefix}}{{.schema.CodeName}} instead +// Deprecated: use {{.prefix}}{{.schema.CodeName}} instead type {{.schema.CodeName}} = {{.prefix}}{{.schema.CodeName}} func New{{.schema.CodeName}}(namespace, name string, obj {{.prefix}}{{.schema.CodeName}}) *{{.prefix}}{{.schema.CodeName}} {