- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewShutdownHealthz (0.31 sec)
-
staging/src/k8s.io/apiserver/pkg/server/healthz/healthz.go
return "informer-sync" } type shutdown struct { stopCh <-chan struct{} } // NewShutdownHealthz returns a new HealthChecker that will fail if the embedded channel is closed. // This is intended to allow for graceful shutdown sequences. func NewShutdownHealthz(stopCh <-chan struct{}) HealthChecker { return &shutdown{stopCh} } func (s *shutdown) Name() string { return "shutdown"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 19:11:24 UTC 2024 - 10.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/healthz.go
// that we can register that the api-server is no longer ready while we attempt to gracefully // shutdown. func (s *GenericAPIServer) addReadyzShutdownCheck(stopCh <-chan struct{}) error { return s.AddReadyzChecks(healthz.NewShutdownHealthz(stopCh)) } // installHealthz creates the healthz endpoint for this server func (s *GenericAPIServer) installHealthz() { s.healthzRegistry.installHandler(s.Handler.NonGoRestfulMux) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 19:11:24 UTC 2024 - 6K bytes - Viewed (0) -
cmd/kube-scheduler/app/server.go
if cc.ComponentConfig.LeaderElection.LeaderElect { checks = append(checks, cc.LeaderElection.WatchDog) readyzChecks = append(readyzChecks, cc.LeaderElection.WatchDog) } readyzChecks = append(readyzChecks, healthz.NewShutdownHealthz(ctx.Done())) waitingForLeader := make(chan struct{}) isLeader := func() bool { select { case _, ok := <-waitingForLeader: // if channel is closed, we are leading return !ok default:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 19:11:24 UTC 2024 - 14.3K bytes - Viewed (0)