print kubeconfig path to stdout for exports

pull/1/head
iwilltry42 6 years ago
parent 85f2a1fa9f
commit 5bfb3ff109
  1. 2
      main.go

@ -5,6 +5,7 @@ import (
"log"
"os"
"os/exec"
"path"
"github.com/urfave/cli"
)
@ -108,6 +109,7 @@ func getKubeConfig(c *cli.Context) error {
return err
}
log.Printf("SUCCESS: retrieved kubeconfig for cluster [%s]", c.String("name"))
fmt.Printf("%s", path.Join(destPath, "kubeconfig.yaml"))
return nil
}

Loading…
Cancel
Save