mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-09-11 21:38:58 +00:00
Move kubeconfig loader utils to cmdutil pkg
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
@@ -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{}
|
||||
|
||||
|
Reference in New Issue
Block a user