]> git.eshelyaron.com Git - emacs.git/commitdiff
kubed.el: Fix filtering resource definition files by kind
authorEshel Yaron <me@eshelyaron.com>
Fri, 26 Jul 2024 10:23:21 +0000 (12:23 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 26 Jul 2024 10:23:21 +0000 (12:23 +0200)
lisp/net/kubed.el

index 3eccdf39f69ece7fa2b0369f6ac36b60cad11584..f93ed41c8050e3b6e47f870807b507961c21c680 100644 (file)
@@ -698,7 +698,7 @@ Optional argument DEFAULT is the minibuffer default argument." resource)
              ,(format "Create Kubernetes %s from definition file DEFINITION."
                       (symbol-name resource))
              (interactive (list (kubed-read-resource-definition-file-name
-                                 ,(capitalize (symbol-name resource)))))
+                                 ,(symbol-name resource))))
              (kubed-create definition ,(symbol-name resource))))
 
        ,@(mapcar
@@ -1100,7 +1100,7 @@ completion candidates."
                             ('noval
                              (puthash (expand-file-name f)
                                       (zerop (call-process
-                                              "grep" f nil nil
+                                              "grep" f nil nil "-i"
                                               (format "^kind: %s$" kind)))
                                       cache))
                             (val val)))
@@ -1109,7 +1109,7 @@ completion candidates."
                             ('noval
                              (puthash (expand-file-name f)
                                       (zerop (call-process
-                                              "grep" f nil nil
+                                              "grep" f nil nil "-i"
                                               (format "^kind: %s$" kind)))
                                       cache))
                             (val val))))))))