changeUDP
This commit is contained in:
parent
016f3a2bc7
commit
229250f419
3 changed files with 4 additions and 4 deletions
|
@ -331,7 +331,7 @@ func (n *NGINXController) OnUpdate(ingressCfg ingress.Configuration) ([]byte, er
|
||||||
PassthroughBackends: ingressCfg.PassthroughBackends,
|
PassthroughBackends: ingressCfg.PassthroughBackends,
|
||||||
Servers: ingressCfg.Servers,
|
Servers: ingressCfg.Servers,
|
||||||
TCPBackends: ingressCfg.TCPEndpoints,
|
TCPBackends: ingressCfg.TCPEndpoints,
|
||||||
UDPBackends: ingressCfg.UPDEndpoints,
|
UDPBackends: ingressCfg.UDPEndpoints,
|
||||||
HealthzURI: ngxHealthPath,
|
HealthzURI: ngxHealthPath,
|
||||||
CustomErrors: len(cfg.CustomHTTPErrors) > 0,
|
CustomErrors: len(cfg.CustomHTTPErrors) > 0,
|
||||||
Cfg: cfg,
|
Cfg: cfg,
|
||||||
|
|
|
@ -391,7 +391,7 @@ func (ic *GenericController) sync(key interface{}) error {
|
||||||
Backends: upstreams,
|
Backends: upstreams,
|
||||||
Servers: servers,
|
Servers: servers,
|
||||||
TCPEndpoints: ic.getStreamServices(ic.cfg.TCPConfigMapName, api.ProtocolTCP),
|
TCPEndpoints: ic.getStreamServices(ic.cfg.TCPConfigMapName, api.ProtocolTCP),
|
||||||
UPDEndpoints: ic.getStreamServices(ic.cfg.UDPConfigMapName, api.ProtocolUDP),
|
UDPEndpoints: ic.getStreamServices(ic.cfg.UDPConfigMapName, api.ProtocolUDP),
|
||||||
PassthroughBackends: passUpstreams,
|
PassthroughBackends: passUpstreams,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -113,9 +113,9 @@ type Configuration struct {
|
||||||
// TCPEndpoints contain endpoints for tcp streams handled by this backend
|
// TCPEndpoints contain endpoints for tcp streams handled by this backend
|
||||||
// +optional
|
// +optional
|
||||||
TCPEndpoints []*Location `json:"tcpEndpoints,omitempty"`
|
TCPEndpoints []*Location `json:"tcpEndpoints,omitempty"`
|
||||||
// UPDEndpoints contain endpoints for udp streams handled by this backend
|
// UDPEndpoints contain endpoints for udp streams handled by this backend
|
||||||
// +optional
|
// +optional
|
||||||
UPDEndpoints []*Location `json:"udpEndpoints,omitempty"`
|
UDPEndpoints []*Location `json:"udpEndpoints,omitempty"`
|
||||||
// PassthroughBackend contains the backends used for SSL passthrough.
|
// PassthroughBackend contains the backends used for SSL passthrough.
|
||||||
// It contains information about the associated Server Name Indication (SNI).
|
// It contains information about the associated Server Name Indication (SNI).
|
||||||
// +optional
|
// +optional
|
||||||
|
|
Loading…
Reference in a new issue