Skip to content

Commit 4f1d853

Browse files
author
Aaron Schlesinger
committed
doc(pkg/healthsrv/healthz_handler.go): clarifying docs
1 parent b039013 commit 4f1d853

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pkg/healthsrv/healthz_handler.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ type healthZResp struct {
3333

3434
func healthZHandler(nsLister NamespaceLister, bLister BucketLister, serverCircuit *sshd.Circuit) http.Handler {
3535
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
36-
// there's a race between the boolean eval and the HTTP error returned, but k8s will repeat the health probe request
37-
// and effectively re-evaluate the boolean.
36+
// There's a race between the boolean eval and the HTTP error returned (the server could start up between the two), but k8s will repeat the health probe request and effectively re-evaluate the boolean. The result is that the server may not start until the next probe in those cases
3837
if serverCircuit.State() != sshd.ClosedState {
3938
str := fmt.Sprintf("SSH Server is not yet started")
4039
log.Err(str)

0 commit comments

Comments
 (0)