From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: master 55eabe96c9: ; Improve manual for Tramp kubernetes method Date: Sat, 22 Oct 2022 11:53:19 +0200 Message-ID: <87tu3w6v74.fsf@gmx.de> References: <166637666472.14803.2269230477358344016@vcs2.savannah.gnu.org> <20221021182424.F0E84C00B0F@vcs2.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38036"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Filipp Gunbin To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 22 12:12:55 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 1omBUs-0009ij-HF for ged-emacs-devel@m.gmane-mx.org; Sat, 22 Oct 2022 12:12:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omBCJ-0003yY-4a; Sat, 22 Oct 2022 05:53:43 -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 1omBC9-0003wN-Vw for emacs-devel@gnu.org; Sat, 22 Oct 2022 05:53:34 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omBC5-0007UK-4c for emacs-devel@gnu.org; Sat, 22 Oct 2022 05:53:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1666432404; bh=mH2R1y4reBQZNdo/rOKjP32HEItyLDzKmoFdnXuVb1I=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=j/xk2vdDo0tik6jcJQElhk/FeRj4pjltIgT9X1WuFbYahVwMofxqWArGc3HcxYmry gevllsGeMFVRYVRyMsDN318lXgjU91nfihwZN3odWc5fdA8rKGHu8IYooxwhzbyz7N Zl++liZWo9vsiw+3Ytfg5qcPwfIJc0VQB2fjtXpU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([79.140.125.83]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MbAh0-1pNQku2Iki-00bacO; Sat, 22 Oct 2022 11:53:24 +0200 In-Reply-To: <20221021182424.F0E84C00B0F@vcs2.savannah.gnu.org> (Filipp Gunbin's message of "Fri, 21 Oct 2022 14:24:24 -0400 (EDT)") X-Provags-ID: V03:K1:rT7uRe8h+QGjZSp5gTsIAUpzXEQaACvpRx6CHictcmbRqOPSATk 11bdEwt05Ebluo6JpG26d+bZmfws0BM801S+2NHZOPhdmp2/Ot762c9rT94C1gNJZfkkEcd T3/QAH4v9NkW9Kw0GG7rboI7X2CaQkNOgi2FL3KCD04YS8NB91uCsRgFdrb6okvNqnz9sGo Ms0UT8k2QgYG2wG15brUQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:lDItlA/EGD4=:pfa7mtu9c4lTArqf5h/UFj xNmUv9CpTrmtcZwwizFmiU0XGLb3tb2vzmKGilEiPiWLOC0HOqFoPTJhs55xjuYwQqHtsAV+c SK0z9+MHksmFcM3fQXh3TSX2zp1XuJhRZ5qBfuIkNhf//INDxh7/VoRTq+HqQdcLoLXALfzuy gI7VdQkbXiST1PFsDcqXwlyMtaDtOJ+InhnF68TpHR11sAHpjLwSQdtbbH57+0nTMqp8Ghc2y 0Uhzi+s68rPHWwPHjO8M6TCOboiPILFKlu3/hq+cCsKWUlhaSiD9wPJJKv7BnDjLK44a31T0m usdvtNv2kX+7cmFgu3jnvcE+NjVH2Xv6TMLyxw8JqVfv7a33mazu9KZ2hL7E1ZGBNNK1hxf1u juueWogSpDo7HjDHyyVtJBKs4/rIyITccyFh4ZP68YXiaSzgZ93+PTZo/bNMkPEtlvU6f7mCn +TsnP76GKDMwWPS4q4ypjOjchZ1lPV6b0szQG9cJ4XJqQPqHe5j2nI7kc923YaZPbjmFFU4ha 3sSTTuDOpnM6rj+fd+1o2u1vi/HL9+uiwTPGEXZHUTd5f71uS5cxeSp58elOiHnJLGRs/VcGd V5IS/DFhAyShBx1b4JBVTydBjutr5RbmgrRzgKclG+xbz1NiVAGfKI/KJVFt3hQhWeNO34Qm+ m7CRw/ADTZoUsYYuQPxZfJPyx7oO1r7FCgObItEbR7f+At91JysnkbEGQ3Oi9Nmp5IQ9CBU9v AuLnRqplh5mU93IPxK2/tZMfzCLG/7cHkL0pcRB4Fbc7uReVzKhu9u4jvLckpd0hX8X+KAMv Received-SPF: pass client-ip=212.227.15.19; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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:298262 Archived-At: Filipp Gunbin writes: Hi Filipp, > +@samp{kubectl get pods} returns pods in the current context and > +namespace. Current namespace can be changed with @samp{kubectl config > +set-context --current --namespace=}. After invoking this or > +other command which modifies Kubernetes environment outside of Emacs, > +call @code{tramp-cleanup-all-connections} to reset Tramp cache data. Can we automate this? I mean, when pod data are cached, and Tramp detects a changed namespace, the cached data should be flushed? Tramp does something similar with other connection methods, for example it checks "uname -sr" on remote hosts, and caches the result. Whenever a new connection to a host is established, Tramp calls again "uname -sr", and compares with the cached value. If the values differ, all cached data for this connection are flushed. Is there a similar way to retieve (and cache) the current context and namespace for pods? Best regards, Michael.