Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a typo in a variable name #239

Merged
merged 1 commit into from
Feb 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions nginx-controller/nginx/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type NginxController struct {
local bool
healthStatus bool
nginxConfTemplatePath string
nginxIngressTempatePath string
nginxIngressTemplatePath string
}

// IngressNginxConfig describes an NGINX configuration
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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)
}
Expand Down