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.bugs Subject: bug#59797: 30.0.50; [wishlist] Using namespaces in Tramp's kubernetes integration Date: Mon, 05 Dec 2022 16:54:47 +0100 Message-ID: <874ju96e2g.fsf@gmx.de> References: <87wn78lu7n.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="35100"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 59797@debbugs.gnu.org To: Filipp Gunbin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 05 16:55:21 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1p2DoP-000916-Se for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Dec 2022 16:55:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2Do8-00051M-Qm; Mon, 05 Dec 2022 10:55:04 -0500 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 1p2Do7-000510-6S for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 10:55:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p2Do6-0006Kp-Ss for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 10:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p2Do6-0004hw-90 for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 10:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Dec 2022 15:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59797 X-GNU-PR-Package: emacs Original-Received: via spool by 59797-submit@debbugs.gnu.org id=B59797.167025570118093 (code B ref 59797); Mon, 05 Dec 2022 15:55:02 +0000 Original-Received: (at 59797) by debbugs.gnu.org; 5 Dec 2022 15:55:01 +0000 Original-Received: from localhost ([127.0.0.1]:36873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2Do5-0004hf-AT for submit@debbugs.gnu.org; Mon, 05 Dec 2022 10:55:01 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:46357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2Do3-0004hZ-BQ for 59797@debbugs.gnu.org; Mon, 05 Dec 2022 10:55:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1670255690; bh=nKAB8PRlYHlkyuyL1C0ZMVfOCsTPby51WMTwGnYXSy0=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=RnPhsPTZaFYs8+cMrSLxdbEkyN9grvW9MQ93K3sXhK+plFaYUHA1l0RB8hCtnGKPC tgDo9b4izRUMb32uWamNspuwHIxYIziLLuF4CYFfb91YdXyt7y20zQkbJ4VP0Tku5N IjJukdjvLFvOnAf4bBoZMCIhmx03qzA3rVS09n16fQhGBRHgNutLmvzCsQyDsHDwDD bvp09PsrKYOC3YVs3jJNIqgRau77KMb02iXxZkUijrtJPx5CvlLgxOBuwNMvOjrmXN TpUR81+8I6/6jUveQfW6pAEeJi1Oc2arh2MoKFyXyitXOTPltMFBLXZqZs2xQ8+hyK tu4zCiwFOhHSw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.11]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N3se2-1otfBJ3fYO-00zk3p; Mon, 05 Dec 2022 16:54:49 +0100 In-Reply-To: (Filipp Gunbin's message of "Mon, 05 Dec 2022 17:05:40 +0300") X-Provags-ID: V03:K1:uk4wf7O/kWQgI+stmiYmdKqOX2Mtw7/MUyCspPbkuCN2cHMav2p SoFygv0AzfQgi2rOS5eIOTTdnPDVCPUZeGrjGaJ+MiPngCU3FqUds1LDsSLlPdzL0zY9EdE CUc9tadX6tuzfIDAa87tQ9pvRrySau2KADI8+QQuZtUyOaSQWDfLotx3fZD2Fk1u7HNDtwB Rg1LZV0s+Y9LYcD8IcE3w== UI-OutboundReport: notjunk:1;M01:P0:sXyVPB4NSD0=;q1sUjM2TADncvEP83amnI1g8782 1uHIxr66xuqnSbw1z61xeU7iimq7qp1oS2xiGp6ZC8YCFdkNTcay0QslntbfBIQE+2RovlAcg Rqs6x2slR3BDInUjnw706BNVlyb4yAH1IfZ4IypSrO/sofv3Li0i6/vBy3waV2FWtpXZU6xIC q98i6J4u2qOSYwWtIapfVqxerpSxoC1YerzIKZj8TsWWzR6B2opeTXkSx670sjC1zXTR127a/ DVNx9LoGK0bYSZhV0dSL37+Pqq0JlcExXxurrPn+D4kcIe9VzKQ996DWTP+HZPAcHItlm7ekF EBMkkGE4cHLdkuEgM93psq/YSISBHEBQeKBH/hRfOTIdghVwMgePUIaEJNEWkvfEc4CgwHkLB Y1IUXfaeWv2Sn8XpjsAOeSphr5z3QCdcab7ihtESWNi7Yi9cfT1zFLGIniJEN2aenMqAlmXcR 795/JUufn8sYzbYURHv6j7Ovt4HPp2FUXjYT0tGbw63Hhkh+FkBUVCl2JWH8MasulT14g1LHv zFHJ0tOqs0wo0di0ZVcoLiBumWhwQf3GYYRAuL8V/FkLGaqutVRnWUt/Sk8eAxiPX1ZvvkkeZ qL65dzudOFOwFocu5CwCPEL4Mgym8mocAANkss6uBFlkYpnnyL1OMTk6/pd8qcnbmE2sdGVBT 7lqygeTI21jvbCw3zJEadK2oW+CdMjQZoQRKTkEiwqwco7u0pAV0XREnEOC2pWy+777ImdBk7 T+Ix+UGGCAejxjogofWFvU5lozWhWVuNSzDSmChl00PejCzJzVdCWmZRDW4s8ICdlZX9wMJS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:250048 Archived-At: Filipp Gunbin writes: > Hi, Hi Filipp, > My motivation behind adding limited k8s support to Tramp was to be able > to login into pod. A service is a more high-level abstraction, you > cannot log into service, as there're some particular pods behind it. > From my limited knowledge and experience of k8s, listing pods in the > current namespace is ok. We could add more scenarios when the need > arises. I don't speak about services in general. I speak about pods. Imagine, you have "pod1" in your current context, and "pod2" in another namespace, call it "another-namespace". "kubectl get pods" shows you "pod1". "kubectl get pods --namespace another-namespace" shows you "pod2". "kubectl exec pod1 -it -- /bin/sh" access pod1 in your current context. This is what we use when we access via remote file name syntax "/kubernetes:pod1:". pod2 is not accessible in your current context. But you could apply "kubectl exec pod2 -it --namespace another-namespace -- /bin/sh". This is what I mean with remote-file name syntax "/kubernetes:pod1.another-namespace:". Is this possible? > Filipp Best regards, Michael.