From b40153773425ff4355b4ff8730d0d11177d2af2c Mon Sep 17 00:00:00 2001 From: Li Date: Mon, 12 Feb 2018 13:22:24 -0500 Subject: [PATCH] typo fix --- nginx-controller/nginx/nginx.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nginx-controller/nginx/nginx.go b/nginx-controller/nginx/nginx.go index 8127300590..9ea038d3b4 100644 --- a/nginx-controller/nginx/nginx.go +++ b/nginx-controller/nginx/nginx.go @@ -25,7 +25,7 @@ type NginxController struct { local bool healthStatus bool nginxConfTemplatePath string - nginxIngressTempatePath string + nginxIngressTemplatePath string } // IngressNginxConfig describes an NGINX configuration @@ -141,7 +141,7 @@ func NewNginxController(nginxConfPath string, local bool, healthStatus bool, ngi local: local, healthStatus: healthStatus, nginxConfTemplatePath: nginxConfTemplatePath, - nginxIngressTempatePath: nginxIngressTemplatePath, + nginxIngressTemplatePath: nginxIngressTemplatePath, } cfg := &NginxMainConfig{ @@ -250,7 +250,7 @@ func (nginx *NginxController) getSecretFileName(name string) string { } func (nginx *NginxController) templateIt(config IngressNginxConfig, filename string) { - tmpl, err := template.New(nginx.nginxIngressTempatePath).ParseFiles(nginx.nginxIngressTempatePath) + tmpl, err := template.New(nginx.nginxIngressTemplatePath).ParseFiles(nginx.nginxIngressTemplatePath) if err != nil { glog.Fatalf("Failed to parse template file: %v", err) }