|
|
@ -5,8 +5,8 @@ import (
|
|
|
|
"net"
|
|
|
|
"net"
|
|
|
|
"os"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/codegangsta/cli"
|
|
|
|
|
|
|
|
"github.com/deis/tiller/cmd/tiller/environment"
|
|
|
|
"github.com/deis/tiller/cmd/tiller/environment"
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
"google.golang.org/grpc"
|
|
|
|
"google.golang.org/grpc"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
@ -16,16 +16,25 @@ import (
|
|
|
|
var rootServer *grpc.Server = grpc.NewServer()
|
|
|
|
var rootServer *grpc.Server = grpc.NewServer()
|
|
|
|
var env = environment.New()
|
|
|
|
var env = environment.New()
|
|
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
const globalUsage = `The Kubernetes Helm server.
|
|
|
|
app := cli.NewApp()
|
|
|
|
|
|
|
|
app.Name = "tiller"
|
|
|
|
Tiller is the server for Helm. It provides in-cluster resource management.
|
|
|
|
app.Usage = `The Helm server.`
|
|
|
|
|
|
|
|
app.Action = start
|
|
|
|
By default, Tiller listens for gRPC connections on port 44134.
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|
|
|
app.Run(os.Args)
|
|
|
|
var rootCommand = &cobra.Command{
|
|
|
|
|
|
|
|
Use: "tiller",
|
|
|
|
|
|
|
|
Short: "The Kubernetes Helm server.",
|
|
|
|
|
|
|
|
Long: globalUsage,
|
|
|
|
|
|
|
|
Run: start,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
|
|
|
|
rootCommand.Execute()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func start(c *cli.Context) {
|
|
|
|
func start(c *cobra.Command, args []string) {
|
|
|
|
addr := ":44134"
|
|
|
|
addr := ":44134"
|
|
|
|
lstn, err := net.Listen("tcp", addr)
|
|
|
|
lstn, err := net.Listen("tcp", addr)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|