Skip to content

Error: Method ‘kubectl’ is not known #132

Description

@ChetanKoneru

Hello @abrochard,

I am experiencing an error with kubel dired while trying to copy log files to local system using tramp.

Tried the same with Kubernetes-el package and it works fine.

Error in messages buffer

error in process sentinel: async-handle-result: Method ‘kubectl’ is not known
error in process sentinel: Method ‘kubectl’ is not known

toggle-debug-on-error does not trigger anything.

Using Emacs-29.4. It is a new install.

I am suspecting kubel-setup-tramp function is the culprit here.

Here is Kubernetes-el tramp method value -

("kubernetes"
  (tramp-login-program "kubectl")
  (tramp-login-args
   (("exec")
    ("%h")
    ("-it")
    ("--")
    ("%l")))
  (tramp-config-check tramp-kubernetes--current-context-data)
  (tramp-direct-async
   ("/bin/sh" "-c"))
  (tramp-remote-shell "/bin/sh")
  (tramp-remote-shell-login
   ("-l"))
  (tramp-remote-shell-args
   ("-i" "-c")))

It looks pretty similar to what you have in kubel-setup-tramp function. I am not sure why this is working and kubel tramp copy is not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions