mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	integration tests: add env. variable for etcd URL.
Many integration tests delete all keys in etcd as part of their cleanup. To run these tests in parallel we must run several etcd daemons, each on different port and pass etcd url to the test suite.
This commit is contained in:
		@@ -27,11 +27,12 @@ import (
 | 
			
		||||
	"github.com/golang/glog"
 | 
			
		||||
	"golang.org/x/net/context"
 | 
			
		||||
	client "k8s.io/kubernetes/pkg/client/unversioned"
 | 
			
		||||
	"k8s.io/kubernetes/test/integration/framework"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func newEtcdClient() etcd.Client {
 | 
			
		||||
	cfg := etcd.Config{
 | 
			
		||||
		Endpoints: []string{"http://127.0.0.1:4001"},
 | 
			
		||||
		Endpoints: []string{framework.GetEtcdURLFromEnv()},
 | 
			
		||||
	}
 | 
			
		||||
	client, err := etcd.New(cfg)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user