]> git.eshelyaron.com Git - kubed.git/commitdiff
(kubed-set-namespace): Improve message. master
authorEshel Yaron <me@eshelyaron.com>
Tue, 11 Feb 2025 17:31:35 +0000 (18:31 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 11 Feb 2025 17:37:38 +0000 (18:37 +0100)
kubed.el

index 7891e1ab4ad70997dbdb199b33b9bd0f7c708d17..9a9ec6a91ca275d3aa9214505ef6724cf1144067 100644 (file)
--- a/kubed.el
+++ b/kubed.el
@@ -2556,7 +2556,11 @@ prefix argument, prompt for CONTEXT as well."
             "config" "set-context" (or context "--current")
             "--namespace" namespace))
     (user-error "Failed to set Kubernetes namespace to `%s'" namespace))
-  (message "Kubernetes namespace is now `%s'." namespace))
+  (message "Default Kubernetes namespace%s is now `%s'."
+           (if context
+               (substitute-quotes (concat " for context `" context "'"))
+             "")
+           namespace))
 
 (defcustom kubed-read-resource-definition-filter-files-by-kind t
   "Whether to filter file completion candidates by their Kubernetes \"kind\".