ingress-nginx-helm/internal
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
..
file Fix lint issues 2018-12-05 13:28:28 -03:00
ingress Pass k8s Service data through to the TCP balancer script. 2019-01-01 20:50:41 -08:00
k8s Fix lint issues 2018-12-05 13:28:28 -03:00
net Fix log output format 2018-12-06 09:59:31 +08:00
runtime Check if cgroup cpu limits are defined to get the number of CPUs 2018-08-25 18:34:44 -03:00
task Replace glog with klog 2018-12-05 13:27:55 -03:00
watch Remove dummy file watcher 2018-06-16 18:49:08 -04:00