]> git.eshelyaron.com Git - kubed.git/commitdiff
; (kubed-display-resource): Only ask for namespace when needed.
authorEshel Yaron <me@eshelyaron.com>
Wed, 14 Aug 2024 12:45:46 +0000 (14:45 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 14 Aug 2024 12:46:59 +0000 (14:46 +0200)
kubed.el

index ab05e110f1ac823275e91d54c090d31b333040ea..8fad0ecdd5d34198ea8fde3a4727870eb0fb0831 100644 (file)
--- a/kubed.el
+++ b/kubed.el
@@ -251,7 +251,7 @@ prompt for CONTEXT as well."
      (unless type
        (setq type (kubed-read-resource-type "Type of resource to display"
                                             nil context)))
-     (unless namespace
+     (when (and (kubed-namespaced-p type context) (null namespace))
        (setq namespace
              (let ((cur (kubed-local-namespace context)))
                (if current-prefix-arg