unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Filipp Gunbin <fgunbin@fastmail.fm>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: emacs-devel@gnu.org
Subject: Re: master 55eabe96c9: ; Improve manual for Tramp kubernetes method
Date: Tue, 25 Oct 2022 21:41:40 +0300	[thread overview]
Message-ID: <m2wn8n7nkr.fsf@fastmail.fm> (raw)
In-Reply-To: <87wn8nu74q.fsf@gmx.de> (Michael Albinus's message of "Tue, 25 Oct 2022 19:48:21 +0200")

Hi Michael,

On 25/10/2022 19:48 +0200, Michael Albinus wrote:

> Filipp Gunbin <fgunbin@fastmail.fm> writes:
>
>> Something messed up in the mailing list (or in my Gnus config :-), I see
>> only some messages in this thread from today.
>
> I recommend to read such MLs via news.gmane.io (as I do). No problems
> today.

After "make bootstrap", I now see the messages, don't know what was the
cause.

>> Anyway: I'll test the new patch a bit later, now just wanted to return
>> to current-context thing.  I'm still sure that we need to cache full
>> config, because a user may change context as easily as a namespace.  In
>> fact, a context _is_ a namespace, in a sense, just higher-level
>> namespace.
>
> My proposal is to check all fields of current-context. Like this:
>
> # kubectl config view -o jsonpath='{.contexts[?(@.name == "docker-desktop")]}'
> {"context":{"cluster":"docker-desktop","user":"docker-desktop"},"name":"docker-desktop"}
>
> This includes the name of the current context ("docker-desktop"), and if
> the user switches to another context, or changes an attribute of the
> current context, it will differ.
>
>> Also, context refers to "cluster" by name, and cluster config also may
>> change, etc.
>
> Yes, but we cannot check everything. Compare it to an ssh connection,
> which uses a Host entry in .ssh/config. If a user changes the Hostname
> part of that Host entry, it isn't detected either by Tramp. The user is
> responsible for this kind of changes, and the consequences.
> 
> And remember, this discussion started because you were concerned about a
> changed namespace, nothing else.

I think I now agree with you, let's use this approach for now.

I'll give it more testing and will write back.

Thanks,
Filipp



  reply	other threads:[~2022-10-25 18:41 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <166637666472.14803.2269230477358344016@vcs2.savannah.gnu.org>
     [not found] ` <20221021182424.F0E84C00B0F@vcs2.savannah.gnu.org>
2022-10-22  9:53   ` master 55eabe96c9: ; Improve manual for Tramp kubernetes method Michael Albinus
2022-10-24 14:39     ` Filipp Gunbin
2022-10-24 15:07       ` Michael Albinus
2022-10-24 15:33         ` Michael Albinus
2022-10-24 18:54           ` Michael Albinus
2022-10-24 23:42             ` Filipp Gunbin
2022-10-25 14:50               ` Michael Albinus
2022-10-25 15:43                 ` Yuri Khan
2022-10-25 15:48                   ` Robert Pluim
2022-10-25 16:02                     ` Yuri Khan
2022-10-25 16:45                       ` Michael Albinus
2022-10-25 17:29             ` Filipp Gunbin
2022-10-25 17:48               ` Michael Albinus
2022-10-25 18:41                 ` Filipp Gunbin [this message]
2022-10-25 20:14                 ` Filipp Gunbin
2022-10-26 12:01                   ` Michael Albinus
2022-10-24 20:41         ` Filipp Gunbin
2022-10-24 22:49           ` Filipp Gunbin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2wn8n7nkr.fsf@fastmail.fm \
    --to=fgunbin@fastmail.fm \
    --cc=emacs-devel@gnu.org \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).