Skip to content

Commit

Permalink
fix(k8s): cleanup variable before re list and watch (#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 7268fe7 commit 29541f5
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 29541f5

Please sign in to comment.