From: Eshel Yaron Date: Sun, 28 Jul 2024 19:49:58 +0000 (+0200) Subject: * kubed.el (deployment): Add useful resource properties X-Git-Tag: v0.2.0~41 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d1efd91fe8672919f2e85ca562b04b58d2371161;p=kubed.git * kubed.el (deployment): Add useful resource properties --- 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)