mirror of
https://github.com/rancher/norman.git
synced 2025-09-24 20:48:18 +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:
@@ -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}} {
|
||||
|
Reference in New Issue
Block a user