Skip to content

Commit

Permalink
kele-list: add resource-specific columns for Secrets and ConfigMaps
Browse files Browse the repository at this point in the history
  • Loading branch information
jinnovation committed Jun 14, 2024
1 parent a2f87b7 commit aab0c2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kele.el
Original file line number Diff line number Diff line change
Expand Up @@ -1715,6 +1715,9 @@ Otherwise, simply `kele-get' the resource at point."
(let-alist (elt .metadata.ownerReferences 0)
(format "%s/%s" .kind .name)))))))))
(namespaces . (("Status" . (lambda (r) (let-alist r .status.phase)))))
(secrets . (("Type" . (lambda (r) (alist-get 'type r)))))
(configmaps . (("Data" . (lambda (r)
(length (map-keys (alist-get 'data r)))))))
(pods . (("Ready" . (lambda (r)
(let-alist r (format "%s/%s"
(->> .status.containerStatuses
Expand Down

0 comments on commit aab0c2e

Please sign in to comment.