Skip to content

Commit

Permalink
fix(k8s): cleanup variable before re list and watch (apache#7506)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhixiongdu027 authored and spacewander committed Aug 17, 2022
1 parent b8b3dff commit 890c4d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apisix/discovery/kubernetes/informer_factory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 890c4d5

Please sign in to comment.