mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-06-20 04:32:05 +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) {
|
||||
ctx := kc.GetCurrentContext()
|
||||
ns := ""
|
||||
ns := "default"
|
||||
if ctx == "" {
|
||||
return "", errors.New("current-context is not set")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user