explicit clear ns

This commit is contained in:
Joffrey 2025-02-28 15:16:38 +01:00
parent 66df17e94b
commit c20ebf38a0

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