Skip to content

Commit

Permalink
Merge pull request #2537 from spidernet-io/robot/cherrypick/pr2532/re…
Browse files Browse the repository at this point in the history
…lease-v0.7

spiderpool-controller readiness health check failure
  • Loading branch information
weizhoublue authored Nov 3, 2023
2 parents 19069f5 + 7b465b0 commit 895f331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/spiderpool-controller/cmd/runtime_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (g *_httpGetControllerReadiness) Handle(params runtime.GetRuntimeReadinessP
}

if g.Leader.IsElected() {
if !g.GCManager.Health() {
if gcIPConfig.EnableGCIP && !g.GCManager.Health() {
logger.Warn("failed to check spiderpool-controller readiness probe: the IP GC is still not ready, please wait for a while")
return runtime.NewGetRuntimeReadinessInternalServerError()
}
Expand Down

0 comments on commit 895f331

Please sign in to comment.