Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CreateReadyCheck (0.11 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/storage/storagebackend/factory/factory_test.go

    							return nil, nil
    						}
    					},
    				}
    				client.KV = dummyKV
    				return client, nil
    			}
    			stop := make(chan struct{})
    			defer close(stop)
    
    			healthcheck, err := CreateReadyCheck(tc.cfg, stop)
    			if err != nil {
    				t.Fatal(err)
    			}
    			// Wait for healthcheck to establish connection
    			<-ready
    
    			got := healthcheck()
    
    			if !errors.Is(got, tc.want) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 29 15:58:10 UTC 2022
    - 12.1K bytes
    - Viewed (0)
  3. 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