mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-09-11 05:19:11 +00:00
Fix bug about where cur ns was stored in yaml
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
@@ -8,12 +8,14 @@ import (
|
||||
)
|
||||
|
||||
type Context struct {
|
||||
Name string `yaml:"name,omitempty"`
|
||||
Namespace string `yaml:"namespace,omitempty"`
|
||||
Name string `yaml:"name,omitempty"`
|
||||
Context struct {
|
||||
Namespace string `yaml:"namespace,omitempty"`
|
||||
} `yaml:"context,omitempty"`
|
||||
}
|
||||
|
||||
func Ctx(name string) *Context { return &Context{Name: name} }
|
||||
func (c *Context) Ns(ns string) *Context { c.Namespace = ns; return c }
|
||||
func (c *Context) Ns(ns string) *Context { c.Context.Namespace = ns; return c }
|
||||
|
||||
type Kubeconfig map[string]interface{}
|
||||
|
||||
|
@@ -1 +0,0 @@
|
||||
package testutil
|
Reference in New Issue
Block a user