From d1efd91fe8672919f2e85ca562b04b58d2371161 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sun, 28 Jul 2024 21:49:58 +0200 Subject: [PATCH] * kubed.el (deployment): Add useful resource properties --- kubed.el | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/kubed.el b/kubed.el index 0bf9d60..1aabc91 100644 --- a/kubed.el +++ b/kubed.el @@ -996,7 +996,19 @@ Optional argument DEFAULT is the minibuffer default argument." resource) ;;;###autoload (autoload 'kubed-create-deployment "kubed" nil t) ;;;###autoload (autoload 'kubed-deployment-prefix-map "kubed" nil t 'keymap) (kubed-define-resource deployment - ((reps ".status.replicas" 4 + ((ready ".status.readyReplicas" 6 + (lambda (l r) (< (string-to-number l) (string-to-number r))) + (lambda (s) (if (string= s "") "0" s)) + :right-align t) + (updated ".status.updatedReplicas" 8 + (lambda (l r) (< (string-to-number l) (string-to-number r))) + (lambda (s) (if (string= s "") "0" s)) + :right-align t) + (available ".status.availableReplicas" 10 + (lambda (l r) (< (string-to-number l) (string-to-number r))) + (lambda (s) (if (string= s "") "0" s)) + :right-align t) + (reps ".status.replicas" 4 (lambda (l r) (< (string-to-number l) (string-to-number r))) nil ; formatting function :right-align t) -- 2.39.2