) const ( storageMemory = "memory" storageConfigMap = "configmap" ) // rootServer is the root gRPC server. // // Each gRPC service registers itself to this server during init(). var rootServer = tiller.NewServer() // env is the default environment. // // Any changes to env should be done before rootServer.Serve() is called. var env = environment.New() var ( grpcAddr = ":44134" probeAddr = ":44135" traceAddr = ":44136" enableTracing = false store = storageConfigMap ) const globalUsage = `The Kubernetes Helm server. Tiller is the server for Helm. It provides in-cluster resource management. By default, Tiller listens for gRPC connections on port 44134. `
func mockEnvironment() *environment.Environment { e := environment.New() e.Releases = storage.Init(driver.NewMemory()) e.KubeClient = &environment.PrintingKubeClient{Out: os.Stdout} return e }