branch: externals/kubed
commit 2e7650f3c1f986b5f81d001e5a198609f0a5b5ee
Author: Eshel Yaron <[email protected]>
Commit: Eshel Yaron <[email protected]>

    (kubed-update): Fix for "other" resource types.
    
    This tries to address an issue affecting 'kubed-display-resource',
    see https://github.com/eshelyaron/kubed/issues/17
    
    * kubed.el (kubed-update): Add default columns (just the name)
    for resource types that are not defined in 'kubed--columns'.
---
 kubed.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kubed.el b/kubed.el
index ffa953c560..093d8db801 100644
--- a/kubed.el
+++ b/kubed.el
@@ -107,7 +107,7 @@ by default it is `yaml-ts-mode'."
     (user-error "Update in progress"))
   (let* ((out (get-buffer-create (format " *kubed-get-%s*"        type)))
          (err (get-buffer-create (format " *kubed-get-%s-stderr*" type)))
-         (columns (alist-get type kubed--columns nil nil #'string=)))
+         (columns (alist-get type kubed--columns '(("NAME:.metadata.name")) 
nil #'string=)))
     (with-current-buffer out (erase-buffer))
     (setf (alist-get 'process (kubed--alist type context namespace))
           (make-process

Reply via email to