Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CreateReadyCheck (0.34 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/factory.go

    	case storagebackend.StorageTypeUnset, storagebackend.StorageTypeETCD3:
    		return newETCD3HealthCheck(c, stopCh)
    	default:
    		return nil, fmt.Errorf("unknown storage type: %s", c.Type)
    	}
    }
    
    func CreateReadyCheck(c storagebackend.Config, stopCh <-chan struct{}) (func() error, error) {
    	switch c.Type {
    	case storagebackend.StorageTypeETCD2:
    		return nil, fmt.Errorf("%s is no longer a supported storage backend", c.Type)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/options/etcd.go

    	if err != nil {
    		return err
    	}
    	c.AddHealthChecks(healthz.NamedCheck("etcd", func(r *http.Request) error {
    		return healthCheck()
    	}))
    
    	readyCheck, err := storagefactory.CreateReadyCheck(s.StorageConfig, c.DrainedNotify())
    	if err != nil {
    		return err
    	}
    	c.AddReadyzChecks(healthz.NamedCheck("etcd-readiness", func(r *http.Request) error {
    		return readyCheck()
    	}))
    
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 15:02:16 UTC 2024
    - 20K bytes
    - Viewed (0)
Back to top