Upgrade k8s package verison (#5358)
* upgrade k8s package version Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io> * Script upgrade and code formatting. Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io> Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
This commit is contained in:
7
vendor/k8s.io/apiserver/pkg/server/healthz.go
generated
vendored
7
vendor/k8s.io/apiserver/pkg/server/healthz.go
generated
vendored
@@ -21,8 +21,8 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"k8s.io/apimachinery/pkg/util/clock"
|
||||
"k8s.io/apiserver/pkg/server/healthz"
|
||||
"k8s.io/utils/clock"
|
||||
)
|
||||
|
||||
// AddHealthChecks adds HealthCheck(s) to health endpoints (healthz, livez, readyz) but
|
||||
@@ -103,7 +103,10 @@ func (s *GenericAPIServer) installReadyz() {
|
||||
s.readyzLock.Lock()
|
||||
defer s.readyzLock.Unlock()
|
||||
s.readyzChecksInstalled = true
|
||||
healthz.InstallReadyzHandler(s.Handler.NonGoRestfulMux, s.readyzChecks...)
|
||||
healthz.InstallReadyzHandlerWithHealthyFunc(s.Handler.NonGoRestfulMux, func() {
|
||||
// note: InstallReadyzHandlerWithHealthyFunc guarantees that this is called only once
|
||||
s.lifecycleSignals.HasBeenReady.Signal()
|
||||
}, s.readyzChecks...)
|
||||
}
|
||||
|
||||
// installLivez creates the livez endpoint for this server.
|
||||
|
||||
Reference in New Issue
Block a user