mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-06-21 05:02:31 +00:00
explicit clear ns
This commit is contained in:
parent
66df17e94b
commit
c20ebf38a0
@ -43,7 +43,7 @@ func (_ UnsetOp) Run(_, stderr io.Writer) error {
|
|||||||
|
|
||||||
func clearNamespace(kc *kubeconfig.Kubeconfig) (string, error) {
|
func clearNamespace(kc *kubeconfig.Kubeconfig) (string, error) {
|
||||||
ctx := kc.GetCurrentContext()
|
ctx := kc.GetCurrentContext()
|
||||||
ns := ""
|
ns := "default"
|
||||||
if ctx == "" {
|
if ctx == "" {
|
||||||
return "", errors.New("current-context is not set")
|
return "", errors.New("current-context is not set")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user