Update rootfs/etc/nginx/lua/balancer.lua
Co-authored-by: Pierre Ozoux <pierre@ozoux.net>
This commit is contained in:
parent
f702bcb25f
commit
0fd734ae7a
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ end
|
||||||
local function sync_backend(backend)
|
local function sync_backend(backend)
|
||||||
-- We resolve external names before checking if the endpoints are empty
|
-- We resolve external names before checking if the endpoints are empty
|
||||||
-- because the behavior for resolve_external_names when the name was not
|
-- because the behavior for resolve_external_names when the name was not
|
||||||
-- resolved is to return an empty table so we set the balncer to nil below
|
-- resolved is to return an empty table so we set the balancer to nil below
|
||||||
-- see https://github.com/kubernetes/ingress-nginx/pull/10989
|
-- see https://github.com/kubernetes/ingress-nginx/pull/10989
|
||||||
if is_backend_with_external_name(backend) then
|
if is_backend_with_external_name(backend) then
|
||||||
backend = resolve_external_names(backend)
|
backend = resolve_external_names(backend)
|
||||||
|
|
Loading…
Reference in a new issue