Update rootfs/etc/nginx/lua/balancer.lua

Co-authored-by: Pierre Ozoux <pierre@ozoux.net>
This commit is contained in:
Neer Friedman 2025-01-03 16:47:54 +02:00 committed by GitHub
parent f702bcb25f
commit 0fd734ae7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)