mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 02:06:23 +00:00
localupcluster: set readiness polling interval to 1 second
Without an explicit interval, Gomega's default polling is very frequent, generating a large volume of /readyz and /healthz requests in the component logs. Set an explicit 1-second interval to reduce noise while still detecting readiness promptly.
This commit is contained in:
@@ -531,7 +531,7 @@ func (c *Cluster) checkEndpoint(tCtx ktesting.TContext, cmd *Cmd, scheme, hostIP
|
||||
return fmt.Errorf("%s returned %d, waiting for 200", url, resp.StatusCode)
|
||||
}
|
||||
return nil
|
||||
}).Should(gomega.Succeed(), fmt.Sprintf("HTTP GET %s", url))
|
||||
}).WithPolling(time.Second).Should(gomega.Succeed(), fmt.Sprintf("HTTP GET %s", url))
|
||||
}
|
||||
|
||||
func dumpProcesses(tCtx ktesting.TContext) {
|
||||
|
||||
Reference in New Issue
Block a user