Move kubeconfig loader utils to cmdutil pkg

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan
2020-04-18 13:32:53 -07:00
parent 1982becb15
commit c4252b5795
19 changed files with 191 additions and 65 deletions

View File

@@ -12,7 +12,8 @@ type Context struct {
Namespace string `yaml:"namespace,omitempty"`
}
func Ctx(name string) *Context { return &Context{Name: name} }
func Ctx(name string) *Context { return &Context{Name: name} }
func (c *Context) Ns(ns string) *Context { c.Namespace = ns; return c }
type Kubeconfig map[string]interface{}