cleanups: go vet/golint (#331)
Go vet and golint the new code once again. Drop Name from NameTemplate - it's cleaner: nametemplate.Template.
This commit is contained in:
parent
710c9b111f
commit
aa7744dc86
16 changed files with 64 additions and 64 deletions
|
@ -52,7 +52,7 @@ func setup(c *caddy.Controller) error {
|
|||
|
||||
func kubernetesParse(c *caddy.Controller) (*Kubernetes, error) {
|
||||
k8s := &Kubernetes{ResyncPeriod: defaultResyncPeriod}
|
||||
k8s.NameTemplate = new(nametemplate.NameTemplate)
|
||||
k8s.NameTemplate = new(nametemplate.Template)
|
||||
k8s.NameTemplate.SetTemplate(defaultNameTemplate)
|
||||
|
||||
for c.Next() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue