ingress-nginx-helm/internal/ingress/controller
Kevin Pullin f0173f0822 Pass k8s Service data through to the TCP balancer script.
Fixes broken L4 ExternalName services.

Details
---------

The `tcp_udp_balancer.lua` script checks if the property
`backend.service.spec["type"]` equals "ExternalName".  If so,
the script does a DNS lookup on the name in order to configure
the backend configuration.

However, before this commit, the k8s `Service` data was
_not_ set on the `Backend` struct passed into the `tcp_udp_balancer.lua`
script and therefore the ExternalName check always returned false.

This commit fixes the issue by setting the `Service` field on
the `Backend` struct. This also requires adding a new field to the
`L4Backend` struct first, so that it's available to set on the `Backend`.
2019-01-01 20:50:41 -08:00
..
config Add an option to automatically set worker_connections based on worker_rlimit_nofile 2018-12-27 18:36:19 +01:00
process Update process-exporter methods 2018-12-05 13:28:10 -03:00
store fix status updated: make sure ingress.status is copied 2018-12-17 16:19:02 +04:00
template Add Unit Tests for getIngressInformation 2018-12-18 11:10:48 -06:00
certificate.go Fix verification of boilerplate, style and file headers 2017-12-03 13:58:23 -03:00
checker.go Replace glog with klog 2018-12-05 13:27:55 -03:00
checker_test.go Create file permission constants 2018-06-12 11:06:14 -04:00
controller.go Pass k8s Service data through to the TCP balancer script. 2019-01-01 20:50:41 -08:00
controller_test.go Fix a bug with Canary becoming main server 2018-12-06 11:04:32 -05:00
endpoints.go Replace glog with klog 2018-12-05 13:27:55 -03:00
endpoints_test.go delete upstream healthcheck annotation 2018-10-09 09:14:13 -04:00
nginx.go Pass k8s Service data through to the TCP balancer script. 2019-01-01 20:50:41 -08:00
nginx_test.go Update lua configuration_data when number of controller pod change 2018-12-14 13:34:54 -05:00
tcp.go Fix log output format 2018-12-06 09:59:31 +08:00
util.go Replace glog with klog 2018-12-05 13:27:55 -03:00
util_test.go Apply gometalinter suggestions 2018-04-25 18:53:49 -03:00