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

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


The following commit(s) were added to refs/heads/master by this push:
     new 3b1cda748 fix(k8s): cleanup variable before re list and watch (#7506)
3b1cda748 is described below

commit 3b1cda748700d915bce4d2e6294321fc5589374e
Author: zhixiongdu <[email protected]>
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)
 

Reply via email to