Revert "add kubeconfig types"

This commit is contained in:
Brendan Burns
2015-01-07 12:39:37 -08:00
parent 39d1c1aa30
commit 02dbad7094
34 changed files with 719 additions and 2606 deletions

View File

@@ -19,10 +19,8 @@ package cmd
import (
"io"
"github.com/spf13/cobra"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl"
"github.com/spf13/cobra"
)
func (f *Factory) NewCmdVersion(out io.Writer) *cobra.Command {
@@ -33,9 +31,7 @@ func (f *Factory) NewCmdVersion(out io.Writer) *cobra.Command {
if GetFlagBool(cmd, "client") {
kubectl.GetClientVersion(out)
} else {
config, err := f.ClientConfig.ClientConfig()
checkErr(err)
client, err := client.New(config)
client, err := f.ClientBuilder.Client()
checkErr(err)
kubectl.GetVersion(out, client)