Skip to content

Commit

Permalink
Merge pull request #96 from justinsb/fix_typo
Browse files Browse the repository at this point in the history
Fix typo PassthrougBackends -> PassthroughBackends
  • Loading branch information
aledbf authored Dec 29, 2016
2 parents fbe3ddc + fb8208c commit 756b41b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions controllers/nginx/pkg/cmd/controller/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,15 @@ func (n NGINXController) OnUpdate(cmap *api.ConfigMap, ingressCfg ingress.Config
}

return n.t.Write(config.TemplateConfig{
BacklogSize: sysctlSomaxconn(),
Backends: ingressCfg.Backends,
PassthrougBackends: ingressCfg.PassthroughBackends,
Servers: ingressCfg.Servers,
TCPBackends: ingressCfg.TCPEndpoints,
UDPBackends: ingressCfg.UPDEndpoints,
HealthzURI: "/healthz",
CustomErrors: len(cfg.CustomHTTPErrors) > 0,
Cfg: cfg,
BacklogSize: sysctlSomaxconn(),
Backends: ingressCfg.Backends,
PassthroughBackends: ingressCfg.PassthroughBackends,
Servers: ingressCfg.Servers,
TCPBackends: ingressCfg.TCPEndpoints,
UDPBackends: ingressCfg.UPDEndpoints,
HealthzURI: "/healthz",
CustomErrors: len(cfg.CustomHTTPErrors) > 0,
Cfg: cfg,
}, n.testTemplate)
}

Expand Down
2 changes: 1 addition & 1 deletion controllers/nginx/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func NewDefault() Configuration {
type TemplateConfig struct {
BacklogSize int
Backends []*ingress.Backend
PassthrougBackends []*ingress.SSLPassthroughBackend
PassthroughBackends []*ingress.SSLPassthroughBackend
Servers []*ingress.Server
TCPBackends []*ingress.Location
UDPBackends []*ingress.Location
Expand Down
4 changes: 2 additions & 2 deletions controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ http {
stream {
# map FQDN that requires SSL passthrough
map $ssl_preread_server_name $stream_upstream {
{{ range $i, $passthrough := .PassthrougBackends }}
{{ range $i, $passthrough := .PassthroughBackends }}
{{ $passthrough.Hostname }} {{ $passthrough.Backend }};
{{ end }}
# send SSL traffic to this nginx in a different port
Expand All @@ -416,7 +416,7 @@ stream {
server 127.0.0.1:442;
}

{{ buildSSPassthroughUpstreams $backends .PassthrougBackends }}
{{ buildSSPassthroughUpstreams $backends .PassthroughBackends }}

server {
listen [::]:443 ipv6only=off;
Expand Down
2 changes: 1 addition & 1 deletion controllers/nginx/test/data/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"customErrors": true,
"defResolver": "",
"healthzURI": "/healthz",
"passthrougBackends": [{
"passthroughBackends": [{
"namespace": "default-kubernetes-443",
"hostname": "foo-898.bar.com"
}, {
Expand Down

0 comments on commit 756b41b

Please sign in to comment.