Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newETCD3ReadyCheck (0.12 sec)

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

    	switch c.Type {
    	case storagebackend.StorageTypeETCD2:
    		return nil, fmt.Errorf("%s is no longer a supported storage backend", c.Type)
    	case storagebackend.StorageTypeUnset, storagebackend.StorageTypeETCD3:
    		return newETCD3ReadyCheck(c, stopCh)
    	default:
    		return nil, fmt.Errorf("unknown storage type: %s", c.Type)
    	}
    }
    
    func CreateProber(c storagebackend.Config) (Prober, error) {
    	switch c.Type {
    	case storagebackend.StorageTypeETCD2:
    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/storage/storagebackend/factory/etcd3.go

    	timeout := storagebackend.DefaultHealthcheckTimeout
    	if c.HealthcheckTimeout != time.Duration(0) {
    		timeout = c.HealthcheckTimeout
    	}
    	return newETCD3Check(c, timeout, stopCh)
    }
    
    func newETCD3ReadyCheck(c storagebackend.Config, stopCh <-chan struct{}) (func() error, error) {
    	timeout := storagebackend.DefaultReadinessTimeout
    	if c.ReadycheckTimeout != time.Duration(0) {
    		timeout = c.ReadycheckTimeout
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 07:56:39 UTC 2024
    - 15.1K bytes
    - Viewed (0)
Back to top