From 72a23f640f13c0f07eb2eb59b2b18aebe4f3b763 Mon Sep 17 00:00:00 2001 From: dongjiang1989 Date: Mon, 5 Feb 2024 21:51:02 +0800 Subject: [PATCH] fix informer factory namespaces bug Signed-off-by: dongjiang1989 --- apisix/discovery/kubernetes/informer_factory.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apisix/discovery/kubernetes/informer_factory.lua b/apisix/discovery/kubernetes/informer_factory.lua index 3dca064039fb..fd434c047391 100644 --- a/apisix/discovery/kubernetes/informer_factory.lua +++ b/apisix/discovery/kubernetes/informer_factory.lua @@ -355,7 +355,7 @@ function _M.new(group, version, kind, plural, namespace) end if namespace and namespace ~= "" then - path = path .. "/namespace/" .. namespace + path = path .. "/namespaces/" .. namespace end path = path .. "/" .. plural