Function: tramp-kubernetes--completion-function
tramp-kubernetes--completion-function is an autoloaded and
byte-compiled function defined in tramp-container.el.gz.
Signature
(tramp-kubernetes--completion-function &rest ARGS)
Documentation
List Kubernetes pods available for connection.
This function is used by tramp-set-completion-function, please
see its function help for a description of the format.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-container.el.gz
;;;###tramp-autoload
(defun tramp-kubernetes--completion-function (&rest _args)
"List Kubernetes pods available for connection.
This function is used by `tramp-set-completion-function', please
see its function help for a description of the format."
(when-let ((default-directory tramp-compat-temporary-file-directory)
(raw-list (shell-command-to-string
(concat tramp-kubernetes-program
" get pods --no-headers "
"-o custom-columns=NAME:.metadata.name")))
(names (split-string raw-list "\n" 'omit)))
(mapcar (lambda (name) (list nil name)) names)))