1
0
mirror of https://github.com/rancher/norman.git synced 2025-04-28 03:20:08 +00:00

Update Deprecated comment in controller template

Deprecated comments should begin with "Deprecated:" so it is recognized
by modern linters.
This commit is contained in:
Jake Hyde 2022-06-10 18:23:49 -04:00
parent 4feb41eafa
commit 7113b21724

View File

@ -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}} {