Fix hyperkube flag parsing

hyperkube kubectl cobra subcommands now work as expected.

Add unit tests with hyperkube subcommands
This commit is contained in:
Colin Hom
2016-05-11 14:46:26 -07:00
committed by Colin Hom
parent 24c46acd16
commit fd1771e7ae
4 changed files with 94 additions and 8 deletions

View File

@@ -23,6 +23,10 @@ import (
cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
)
/*
WARNING: this logic is duplicated, with minor changes, in cmd/hyperkube/kubectl.go
Any salient changes here will need to be manually reflected in that file.
*/
func Run() error {
cmd := cmd.NewKubectlCommand(cmdutil.NewFactory(nil), os.Stdin, os.Stdout, os.Stderr)
return cmd.Execute()