Fix typo PassthrougBackends -> PassthroughBackends
This commit is contained in:
parent
8e90fc0290
commit
fb8208cf8b
4 changed files with 13 additions and 13 deletions
|
@ -289,15 +289,15 @@ func (n NGINXController) OnUpdate(cmap *api.ConfigMap, ingressCfg ingress.Config
|
||||||
}
|
}
|
||||||
|
|
||||||
return n.t.Write(config.TemplateConfig{
|
return n.t.Write(config.TemplateConfig{
|
||||||
BacklogSize: sysctlSomaxconn(),
|
BacklogSize: sysctlSomaxconn(),
|
||||||
Backends: ingressCfg.Backends,
|
Backends: ingressCfg.Backends,
|
||||||
PassthrougBackends: ingressCfg.PassthroughBackends,
|
PassthroughBackends: ingressCfg.PassthroughBackends,
|
||||||
Servers: ingressCfg.Servers,
|
Servers: ingressCfg.Servers,
|
||||||
TCPBackends: ingressCfg.TCPEndpoints,
|
TCPBackends: ingressCfg.TCPEndpoints,
|
||||||
UDPBackends: ingressCfg.UPDEndpoints,
|
UDPBackends: ingressCfg.UPDEndpoints,
|
||||||
HealthzURI: "/healthz",
|
HealthzURI: "/healthz",
|
||||||
CustomErrors: len(cfg.CustomHTTPErrors) > 0,
|
CustomErrors: len(cfg.CustomHTTPErrors) > 0,
|
||||||
Cfg: cfg,
|
Cfg: cfg,
|
||||||
}, n.testTemplate)
|
}, n.testTemplate)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -268,7 +268,7 @@ func NewDefault() Configuration {
|
||||||
type TemplateConfig struct {
|
type TemplateConfig struct {
|
||||||
BacklogSize int
|
BacklogSize int
|
||||||
Backends []*ingress.Backend
|
Backends []*ingress.Backend
|
||||||
PassthrougBackends []*ingress.SSLPassthroughBackend
|
PassthroughBackends []*ingress.SSLPassthroughBackend
|
||||||
Servers []*ingress.Server
|
Servers []*ingress.Server
|
||||||
TCPBackends []*ingress.Location
|
TCPBackends []*ingress.Location
|
||||||
UDPBackends []*ingress.Location
|
UDPBackends []*ingress.Location
|
||||||
|
|
|
@ -399,7 +399,7 @@ http {
|
||||||
stream {
|
stream {
|
||||||
# map FQDN that requires SSL passthrough
|
# map FQDN that requires SSL passthrough
|
||||||
map $ssl_preread_server_name $stream_upstream {
|
map $ssl_preread_server_name $stream_upstream {
|
||||||
{{ range $i, $passthrough := .PassthrougBackends }}
|
{{ range $i, $passthrough := .PassthroughBackends }}
|
||||||
{{ $passthrough.Hostname }} {{ $passthrough.Backend }};
|
{{ $passthrough.Hostname }} {{ $passthrough.Backend }};
|
||||||
{{ end }}
|
{{ end }}
|
||||||
# send SSL traffic to this nginx in a different port
|
# send SSL traffic to this nginx in a different port
|
||||||
|
@ -416,7 +416,7 @@ stream {
|
||||||
server 127.0.0.1:442;
|
server 127.0.0.1:442;
|
||||||
}
|
}
|
||||||
|
|
||||||
{{ buildSSPassthroughUpstreams $backends .PassthrougBackends }}
|
{{ buildSSPassthroughUpstreams $backends .PassthroughBackends }}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen [::]:443 ipv6only=off;
|
listen [::]:443 ipv6only=off;
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
"customErrors": true,
|
"customErrors": true,
|
||||||
"defResolver": "",
|
"defResolver": "",
|
||||||
"healthzURI": "/healthz",
|
"healthzURI": "/healthz",
|
||||||
"passthrougBackends": [{
|
"passthroughBackends": [{
|
||||||
"namespace": "default-kubernetes-443",
|
"namespace": "default-kubernetes-443",
|
||||||
"hostname": "foo-898.bar.com"
|
"hostname": "foo-898.bar.com"
|
||||||
}, {
|
}, {
|
||||||
|
|
Loading…
Reference in a new issue