explicit clear ns

This commit is contained in:
Joffrey
2025-02-28 15:16:38 +01:00
committed by Ahmet Alp Balkan
parent cef93629f0
commit e8ea180cee

View File

@@ -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")
}