Commit 00966bb4 authored by Matt Butcher's avatar Matt Butcher

fix(helmet): remove helmet

parent 09a3b7ed
package main
import (
"fmt"
"os"
"github.com/codegangsta/cli"
"github.com/deis/tiller/pkg/hapi"
ctx "golang.org/x/net/context"
"google.golang.org/grpc"
)
func main() {
app := cli.NewApp()
app.Name = "helmet"
app.Usage = "The Helm Easy Tester (HelmET)"
app.Action = run
app.Run(os.Args)
}
func run(c *cli.Context) {
conn, err := grpc.Dial("localhost:44134", grpc.WithInsecure())
if err != nil {
fmt.Fprintf(os.Stderr, "Could not connect to server: %s\n", err)
os.Exit(1)
}
defer conn.Close()
pc := hapi.NewProbeClient(conn)
req := &hapi.PingRequest{Name: "helmet"}
res, err := pc.Ready(ctx.Background(), req)
if err != nil {
fmt.Fprintf(os.Stderr, "Error pinging server: %s\n", err)
os.Exit(1)
}
fmt.Printf("Server is %s\n", res.Status)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment