From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.devel Subject: Re: master 55eabe96c9: ; Improve manual for Tramp kubernetes method Date: Tue, 25 Oct 2022 21:41:40 +0300 Message-ID: References: <166637666472.14803.2269230477358344016@vcs2.savannah.gnu.org> <20221021182424.F0E84C00B0F@vcs2.savannah.gnu.org> <87tu3w6v74.fsf@gmx.de> <87a65l6z0l.fsf@gmx.de> <875yg96xu8.fsf@gmx.de> <871qqx6oi5.fsf@gmx.de> <87wn8nu74q.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11038"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 25 20:48:12 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1onOyA-0002XS-4K for ged-emacs-devel@m.gmane-mx.org; Tue, 25 Oct 2022 20:48:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onOs7-0006Ex-NB; Tue, 25 Oct 2022 14:41:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onOs1-00068Y-CK for emacs-devel@gnu.org; Tue, 25 Oct 2022 14:41:49 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onOrz-0003gA-Eb for emacs-devel@gnu.org; Tue, 25 Oct 2022 14:41:48 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id E71B25C00E2; Tue, 25 Oct 2022 14:41:44 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 25 Oct 2022 14:41:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1666723304; x=1666809704; bh=xUguIw15LG +7uz/jjLC6yAClEC22rYHfzz+ngPyUypg=; b=Wc6HrvL0U/JTXKGej9kPv9XZ+z MWAc6fZspDxD6CwSIqb6tHTFUVxd5yDdImOa8W80RGO0G3Mod+3nXr1aBTXhU0gR 8xu1/o91cADUPFJFW8KIFunUectPAOnonpbCjr4TGMxgA6EvDm/co3YGA9lYpc9M xz1hUSU2YBjCHf9WHvzSWJ6wkdoYggkF8HaPiUkJBOKjWz+1xRf4enoZtNam/BLu JprPLE/HOmQ3a9BAtErfdX9UwdeGRCeksj3klUca9Vlha1gjfCs9AIYnp43ftog9 1XoRYhUO7qDgJ6NM0zsRgHIFqa4cL6mLdrKoQV+9Do55qFqp1fyzRW6zFj8w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1666723304; x=1666809704; bh=xUguIw15LG+7uz/jjLC6yAClEC22 rYHfzz+ngPyUypg=; b=XnJvLC76FZMip0cNBy/aAghkWkz3i9jSK2k+d1vi+im/ bgP+dWmFsFYUDrmW0+HUB8LTHvgmwSM8/NlOS6KBe59kgt2mWA87cnGqM+Bq1fqE Bv/KzDiaHsd5yPzHST07PWD66X0L0WiHKzUD2RhLqy3ZLjx7WDmyKJn69qIKHgT2 PtNS4FIhjtLFZVV0iPQBSDsKWZwdteRp4JWvOr+eiaicl1UCZubjjXY2hzWuAtwL cuuRwK2Fnb5hHl9cT552gStEC2Jp8yC6oI9/S3dbOIzXtBQh94liJNdZJqSWM0Ka OqjQv1SHUBpj04rMn7CbfWXIrPY/YVxBbmnGMWzLvA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrtddtgdellecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufgjfhgffffkgggtsehttdertddtredtnecuhfhrohhmpefhihhlihhp phcuifhunhgsihhnuceofhhguhhnsghinhesfhgrshhtmhgrihhlrdhfmheqnecuggftrf grthhtvghrnhepveegfeektdeijeejgfegvdettdekgfetkeeluedvtefgudfgtdekhedu ueeujeehnecuffhomhgrihhnpehgmhgrnhgvrdhiohenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehfghhunhgsihhnsehfrghsthhmrghilhdr fhhm X-ME-Proxy: Feedback-ID: id48c41f1:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 25 Oct 2022 14:41:44 -0400 (EDT) In-Reply-To: <87wn8nu74q.fsf@gmx.de> (Michael Albinus's message of "Tue, 25 Oct 2022 19:48:21 +0200") Mail-Followup-To: Michael Albinus , emacs-devel@gnu.org Received-SPF: pass client-ip=66.111.4.28; envelope-from=fgunbin@fastmail.fm; helo=out4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298489 Archived-At: Hi Michael, On 25/10/2022 19:48 +0200, Michael Albinus wrote: > Filipp Gunbin 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