diff options
| author | Michael Albinus | 2024-07-25 13:38:27 +0200 |
|---|---|---|
| committer | Michael Albinus | 2024-07-25 13:38:27 +0200 |
| commit | d2cb9f2bf6ef9f3fcd8c21455ca1f1e624e61bf4 (patch) | |
| tree | bedfa9e6605e1cb123dfd90e4fd8ebb24f34fd04 /doc | |
| parent | ba31c62f815537c0412eb84e8188cc5c3c4948b1 (diff) | |
| download | emacs-d2cb9f2bf6ef9f3fcd8c21455ca1f1e624e61bf4.tar.gz emacs-d2cb9f2bf6ef9f3fcd8c21455ca1f1e624e61bf4.zip | |
Tramp's method "kubernetes" supports now optional namespace
* doc/misc/tramp.texi (Inline methods): Extend Kubernetes host
name syntax by an optional namespace.
(Kubernetes setup): Mention optional namespace part of the host name.
* etc/NEWS: Tramp's method "kubernetes" supports now optional namespace.
Fix typos.
* lisp/net/tramp-container.el (tramp-kubernetes-namespace):
Initialize with nil. Adapt docstring.
(tramp-kubernetes--name-regexp): New defconst.
(tramp-kubernetes--host-name-regexp): Change in order to cover
also an optional namespace. (Bug#59797)
(tramp-kubernetes--namespace): New defun.
(tramp-kubernetes--context-namespace): Use it.
(tramp-skeleton-kubernetes-vector): Add sanity check for
superfluous user name or port number.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/misc/tramp.texi | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index eddf0272641..e548432700f 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -999,9 +999,11 @@ if desired. | |||
| 999 | @cindex @option{kubernetes} method | 999 | @cindex @option{kubernetes} method |
| 1000 | 1000 | ||
| 1001 | Integration for containers in Kubernetes pods. The host name is | 1001 | Integration for containers in Kubernetes pods. The host name is |
| 1002 | @samp{@var{pod}}, or @samp{@var{container}.@var{pod}} if an | 1002 | @samp{@var{pod}}, or @samp{@var{container}.@var{pod}} if an explicit |
| 1003 | explicit container name shall be used. Otherwise, the first container | 1003 | container name shall be used. Otherwise, the first container in a pod |
| 1004 | in a pod is used. | 1004 | is used. @samp{@var{pod}%@var{namespace}} as host name allows to use |
| 1005 | another namespace but the default one. This can also be combined with | ||
| 1006 | the @samp{@var{container}.} prefix. | ||
| 1005 | 1007 | ||
| 1006 | This method does not support user names. | 1008 | This method does not support user names. |
| 1007 | 1009 | ||
| @@ -3246,7 +3248,9 @@ by setting the pod annotation | |||
| 3246 | @vindex tramp-kubernetes-namespace | 3248 | @vindex tramp-kubernetes-namespace |
| 3247 | @value{tramp} uses the default Kubernetes context and namespace. If | 3249 | @value{tramp} uses the default Kubernetes context and namespace. If |
| 3248 | another context or namespace shall be used, configure the user options | 3250 | another context or namespace shall be used, configure the user options |
| 3249 | @code{tramp-kubernetes-context} and @code{tramp-kubernetes-namespace}. | 3251 | @code{tramp-kubernetes-context} or @code{tramp-kubernetes-namespace}, |
| 3252 | respectively. An explicit @samp{%@var{namespace}} postfix in the host | ||
| 3253 | name takes precedence. | ||
| 3250 | 3254 | ||
| 3251 | 3255 | ||
| 3252 | @node Auto-save File Lock and Backup | 3256 | @node Auto-save File Lock and Backup |