Function: tramp-kubernetes--namespace
tramp-kubernetes--namespace is an autoloaded and byte-compiled
function defined in tramp-container.el.gz.
Signature
(tramp-kubernetes--namespace VEC)
Documentation
Extract the namespace from a kubernetes host name in VEC.
Use tramp-kubernetes-namespace otherwise.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-container.el.gz
;;;###tramp-autoload
(defun tramp-kubernetes--namespace (vec)
"Extract the namespace from a kubernetes host name in VEC.
Use `tramp-kubernetes-namespace' otherwise."
(or (when-let* ((host (and vec (tramp-file-name-host vec)))
((string-match tramp-kubernetes--host-name-regexp host)))
(match-string 3 host))
tramp-kubernetes-namespace))