From: Eshel Yaron Date: Wed, 14 Aug 2024 17:29:11 +0000 (+0200) Subject: Use buffer-local context in 'kubed-list-*' commands X-Git-Tag: v0.3.2~11 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a46344f2b013570719f69acd03600190d6417b98;p=kubed.git Use buffer-local context in 'kubed-list-*' commands * kubed.el (kubed-define-resource): Use 'kubed-local-context' instead of 'kubed-current-context' in generated 'kubed-list-*' commands, and likewise for the namespace. --- diff --git a/kubed.el b/kubed.el index 9982f93..955c522 100644 --- a/kubed.el +++ b/kubed.el @@ -1533,14 +1533,14 @@ prompt for CONTEXT as well." plrl-var) Interactively, use the current context. With a prefix argument \\[universal-argument], prompt for CONTEXT." plrl-var)) (interactive - (let* ((context (kubed-current-context)) + (let* ((context (kubed-local-context)) (context (if (equal current-prefix-arg ,(if namespaced ''(16) ''(4))) (kubed-read-context "Context" context) context))) (list context . ,(when namespaced - '((let ((cur (kubed-current-namespace context))) + '((let ((cur (kubed-local-namespace context))) (if current-prefix-arg (kubed-read-namespace "Namespace" cur nil context) cur)))))))