Function: tramp-kubernetes--context-namespace

tramp-kubernetes--context-namespace is an autoloaded and byte-compiled function defined in tramp-container.el.gz.

Signature

(tramp-kubernetes--context-namespace VEC)

Documentation

The kubectl options for context and namespace as string.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-container.el.gz
;;;###tramp-autoload
(defun tramp-kubernetes--context-namespace (vec)
  "The kubectl options for context and namespace as string."
  (string-join
   (delq nil
	 `(,(when-let* ((context (tramp-kubernetes--current-context vec)))
	      (format "--context=%s" context))
	   ,(when-let* ((namespace (tramp-kubernetes--namespace vec)))
	      (format "--namespace=%s" namespace))))
   " "))