unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eshel Yaron <me@eshelyaron.com>
To: emacs-devel@gnu.org
Subject: New library kubed.el for interacting with Kubernetes
Date: Tue, 23 Jul 2024 14:18:46 +0200	[thread overview]
Message-ID: <m1r0bk713t.fsf@eshelyaron.com> (raw)

Hi all,

I'd like to propose my library kubed.el for inclusion in Emacs core or
GNU ELPA.  Emacs already has support for Kubernetes in Tramp, which lets
you work "in" containers in Kubernetes pods.  kubed.el adds the ability
to work "on" Kubernetes resources.  Namely, it lets you list, edit,
create, display, and delete various Kubernetes resources.

kubed.el uses an elaborate macro kubed-define-resource to define common
commands for supported Kubernetes resources types.  This allows kubed.el
to remain concise while providing support for many kinds of resources.
Like Tramp's Kubernetes integration, kubed.el uses the kubectl command
to communicate with Kubernetes.  No external Lisp packages are required.

You can find the library here:

https://git.sr.ht/~eshel/emacs/tree/main/item/lisp/net/kubed.el

Here's an excerpt from the Commentary section:

;; This library defines commands for interacting with Kubernetes
;; resources, such as Kuberenetes pods, services, deployments, and more.
;;
;; Use `kubed-display-pod' to display a Kuberenetes pod,
;; `kubed-edit-pod' to edit it, `kubed-delete-pods' to delete it, and
;; `kubed-list-pods' to see a menu of all pods.  You can create new pods
;; from YAML or JSON files with `kubed-create-pod'.  To update the list
;; of current pods, use `kubed-update-pods' or `kubed-update-all'.
;;
;; Similar commands are defined for other types of resources as well.
;;
;; This library interacts with Kuberenetes via `kubectl', and uses the
;; current `kubectl' context and namespace.  To change your current
;; Kuberenetes context or namespace, use `kubed-use-context' and
;; `kubed-set-namespace'; all resource lists are updated automatically
;; after you do so.  In addition, you can use the minor mode
;; `kubed-all-namespaces-mode' to see resources from all namespaces.
;;
;; If you want to work with more or different types of Kubernetes
;; resources, use the macro `kubed-define-resource'.  This macro defines
;; some common functions and commands that'll get you started with ease.


Comments, thoughts and suggestions would be most welcome, thanks,

Eshel



             reply	other threads:[~2024-07-23 12:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-23 12:18 Eshel Yaron [this message]
2024-07-28 16:34 ` New library kubed.el for interacting with Kubernetes Eshel Yaron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1r0bk713t.fsf@eshelyaron.com \
    --to=me@eshelyaron.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).