-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TRAMP + Emacs 30 #109
Comments
Hi @johnhamelink ,
I'm also still on 28 and not sure when I will upgrade/find time to work on this. |
Sounds good!
That's right. I wonder if instead we could supply environment variables to the underlying kubectl process? Another issue is that according to the docs, "The first container in a pod is used", which is rather limiting for Kubel's use-case. Similar tools like k9s allow you to select the pod - often the first pod is actually |
This works for me (with-eval-after-load 'tramp
(require 'tramp-container)
(when-let* ((method (thread-last tramp-methods
(seq-find #'(lambda (it) (pcase it (`("kubernetes" . ,_) t))))))
(updated (pcase method (`(,_ . ,rest) `("kubectl" . ,rest)))))
(add-to-list 'tramp-methods updated))) It inserts Hope it helps. |
FYI it's now possible to define a container ID along with a pod in Emacs master: https://github.com/emacs-mirror/emacs/blob/master/lisp/net/tramp-container.el#L47 It seems that the namespace and context can be defined now too: |
Hi there,
I'm running Emacs from master branch. Emacs 29 comes with support for Kubernetes, Podman and Docker as TRAMP "inline methods" (see here).
tramp-kubernetes-program
as the default path forkubectl
for Emacs 29+kubectl
TRAMP method, and towards using the officialkubernetes
method instead.tramp-kubernetes-context
andtramp-kubernetes-namespace
(https://github.com/emacs-mirror/emacs/blob/master/etc/NEWS#L439).The text was updated successfully, but these errors were encountered: