@@ -1601,6 +1601,9 @@ This is idempotent."
16011601 (let ((map (make-sparse-keymap )))
16021602 (define-key map (kbd " c" ) #'kele-config )
16031603 (define-key map (kbd " r" ) #'kele-resource )
1604+ (define-key map (kbd " P" ) #'kele-pods )
1605+ (define-key map (kbd " D" ) #'kele-deployments )
1606+ (define-key map (kbd " S" ) #'kele-services )
16041607 (define-key map (kbd " p" ) #'kele-ports )
16051608 (define-key map (kbd " ?" ) #'kele-dispatch )
16061609 map)
@@ -2642,6 +2645,46 @@ CONTEXT and NAMESPACE are used to identify where the deployment lives."
26422645
26432646; ; FIXME: Known issues:
26442647; ; - Might not support multi-container pods
2648+
2649+ (defun kele-pods ()
2650+ " Work with Pod resources.
2651+
2652+ This is a convenience wrapper around `kele-resource' that
2653+ pre-selects the 'pods' resource kind."
2654+ (interactive )
2655+ (kele-resource
2656+ (kele--get-groupversions-for-type
2657+ kele--global-discovery-cache
2658+ " pods"
2659+ :context (kele-current-context-name))
2660+ " pods" ))
2661+
2662+ (defun kele-deployments ()
2663+ " Work with Deployment resources.
2664+
2665+ This is a convenience wrapper around `kele-resource' that
2666+ pre-selects the 'deployments' resource kind."
2667+ (interactive )
2668+ (kele-resource
2669+ (kele--get-groupversions-for-type
2670+ kele--global-discovery-cache
2671+ " deployments"
2672+ :context (kele-current-context-name))
2673+ " deployments" ))
2674+
2675+ (defun kele-services ()
2676+ " Work with Service resources.
2677+
2678+ This is a convenience wrapper around `kele-resource' that
2679+ pre-selects the 'services' resource kind."
2680+ (interactive )
2681+ (kele-resource
2682+ (kele--get-groupversions-for-type
2683+ kele--global-discovery-cache
2684+ " services"
2685+ :context (kele-current-context-name))
2686+ " services" ))
2687+
26452688(transient-define-suffix kele-resource-follow-logs (context namespace gvk name)
26462689 :key " L"
26472690 :if
@@ -2691,8 +2734,11 @@ CONTEXT and NAMESPACE are used to identify where the deployment lives."
26912734 " Work with Kubernetes clusters and configs."
26922735 [[" Work with..."
26932736 (" c" " Configurations" kele-config)
2737+ (" p" " Proxy servers" kele-ports)
26942738 (" r" " Resources" kele-resource)
2695- (" p" " Proxy servers" kele-ports)]
2739+ (" P" " Pods" kele-pods)
2740+ (" D" " Deployments" kele-deployments)
2741+ (" S" " Services" kele-services)]
26962742 [" Actions"
26972743 (" L" kele-list-all)]])
26982744
0 commit comments