ingress-nginx-helm/internal/ingress
Emily L Shepherd 3c86f838d4
Sync Hostname and IP address from service to ingress status (#7464)
* Change statusSync.runningAddresses() return type

Previously, this method returning a string slice containing the resolved
IP addresses / FQDNs to sync onto the Ingress. It was then converted
just before use into a slice of LoadBalancerIngresses.

This commit changes this logic so that this method generates
LoadBalancerIngress objects directly, and returns these. This has two
main benefits:
- Future work in syncing _both_ hostname and IP, or any other fields
  that may be used in future (eg Ports), is now supported.
- There is less need to rely on net.ParseIP() to determine if a value is
  an IP address or Hostname, as this can be correctly assigned at
  generation time based on where each value came from.

* Sync both IP and Hostname to Ingress Status

Previously, if the IP address was set on a PublishService's
LoadBalancerIngress entries, only that would be synced. Hostname was
only synced as a fallback when the IP address was missing.

Now, both fields are checked independantly and both are synced if
present.
2021-09-07 10:41:16 -07:00
..
annotations Additional AuthTLS assertions and doc change to demonstrate auth-tls-secret enables the other AuthTLS annotations (#7202) 2021-09-07 10:35:16 -07:00
controller Update to the base nginx image (#7597) 2021-09-05 04:50:28 -07:00
defaults Allow preservation of trailing slashes on TLS redirects via annotation. (#7144) 2021-05-23 08:51:38 -07:00
errors implement canary annotation and alternative backends 2018-11-06 13:13:14 -05:00
metric Release v1 (#7470) 2021-08-21 13:42:00 -07:00
resolver chore: Add test to internal ingress resolver pkg 2020-12-23 13:33:12 -03:00
status Sync Hostname and IP address from service to ingress status (#7464) 2021-09-07 10:41:16 -07:00
sslcert.go Update PemSHA field for default SSL certificate 2021-01-21 19:15:03 -03:00
types.go feat: add session-cookie-secure annotation (#7399) 2021-09-01 15:23:40 -07:00
types_equals.go feat: add session-cookie-secure annotation (#7399) 2021-09-01 15:23:40 -07:00
types_equals_test.go fix crl not reload when crl got updated in the ca secret 2021-03-31 16:13:07 -04:00
zz_generated.deepcopy.go Update ingress to go 1.17 (#7521) 2021-08-23 14:25:25 -07:00