You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2022/08/17 09:29:14 UTC

[apisix] 12/12: fix(k8s): cleanup variable before re list and watch (#7506)

This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch release/2.13
in repository https://gitbox.apache.org/repos/asf/apisix.git

commit 29541f5e234cbd1aa0ae93ed86cbb5692cd985b2
Author: zhixiongdu <ro...@libssl.com>
AuthorDate: Fri Jul 22 14:15:01 2022 +0800

    fix(k8s): cleanup variable before re list and watch (#7506)
---
 apisix/discovery/kubernetes/informer_factory.lua | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/apisix/discovery/kubernetes/informer_factory.lua b/apisix/discovery/kubernetes/informer_factory.lua
index a03f27a5a..3dca06403 100644
--- a/apisix/discovery/kubernetes/informer_factory.lua
+++ b/apisix/discovery/kubernetes/informer_factory.lua
@@ -263,6 +263,9 @@ local function list_watch(informer, apiserver)
     local reason, message
     local httpc = http.new()
 
+    informer.continue = ""
+    informer.version = ""
+
     informer.fetch_state = "connecting"
     core.log.info("begin to connect ", apiserver.host, ":", apiserver.port)