mirror of
https://github.com/ahmetb/kubectx.git
synced 2026-03-16 19:02:14 +00:00
explicit clear ns
This commit is contained in:
committed by
Ahmet Alp Balkan
parent
cef93629f0
commit
e8ea180cee
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user