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.bugs Subject: bug#59797: 30.0.50; [wishlist] Using namespaces in Tramp's kubernetes integration Date: Tue, 06 Dec 2022 16:56:30 +0300 Message-ID: References: <87wn78lu7n.fsf@gmx.de> <874ju96e2g.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="11546"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 59797@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 06 14:57:14 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 1p2YRd-0002o2-Fd for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Dec 2022 14:57:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2YRV-0007JH-Eg; Tue, 06 Dec 2022 08:57:05 -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 1p2YRT-0007HZ-Cm for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2022 08:57: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 1p2YRS-0001Cq-Oq for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2022 08:57:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p2YRS-00046z-5N for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2022 08:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Filipp Gunbin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Dec 2022 13:57: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.167033500615787 (code B ref 59797); Tue, 06 Dec 2022 13:57:02 +0000 Original-Received: (at 59797) by debbugs.gnu.org; 6 Dec 2022 13:56:46 +0000 Original-Received: from localhost ([127.0.0.1]:43109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2YRB-00046Z-RD for submit@debbugs.gnu.org; Tue, 06 Dec 2022 08:56:46 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:52733) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2YR9-00046R-E5 for 59797@debbugs.gnu.org; Tue, 06 Dec 2022 08:56:44 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 07DB55C00A7; Tue, 6 Dec 2022 08:56:37 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 06 Dec 2022 08:56:37 -0500 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=fm2; t=1670334997; x=1670421397; bh=G9+hJfTk0X XdJZp0/3MxWLp7jiSaU+7LbG9wbweXqMs=; b=PP4CvNbE1ELesE8swigMR783he mTNTQFYj1rUqVPqz9+/jlULhHJO7PVcbOoZ9ksVwkfcya791mcyulpkrQqqdwMhs GUueqekoV8RXYbmGS14CHRhnzPBSrjbdTnATPmYbOp2dLOPSGOStuktORfTE4Emv zs4Cd6asw0HzKVvt6EUsrqogOd2+zPGWUSAY5CVnyqzZsJ92JLoguu1ToLfoK3+z adJ6mtcnnSFXMx/Hcx7GDoY+4pND+dQxJB7iO1sC6bhZt3Hx3KsicHGmtWzs72M+ Gq1C8/OrSWDo2MPx/1YGE+U2+zUStXu4ghgjSiMm/PoW3BLtFYeM0Gkgs4Hw== 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= fm1; t=1670334997; x=1670421397; bh=G9+hJfTk0XXdJZp0/3MxWLp7jiSa U+7LbG9wbweXqMs=; b=OzmaIAa190q8PR/yBH31a9jHz5yB7DpO0SXswsuB58gN KcDRBpcngReBKz0pMn3HfDZm5zzcWz3gfF7NXODJKuIqYWxlW1BoYKSRHCv8mrbS Jo5ny7TD//lY/4gLJUOKcU2Ui6Ra+AyE9smE9mtjjfD5zDi2RF5fd+z9ZCUCd6g9 ggh/4AI6CE77sBWQAAS7pG8xWgWe+dmdhgPeoL2hRxBum/3hSN/kh8i2BbFVv7sh vhfFk1r8WVYCeSDkaP7y28spBmq3Nxl5d9ILZ4E9WPv9RE+Me912az2nvtRKCmtL EMp84RSuyMXNn5f02cu+pT/SIDvQnqR1kROzQ6tLRw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudeigdehiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufgjfhgffffkgggtsehttdertddtredtnecuhfhrohhmpefhihhlihhp phcuifhunhgsihhnuceofhhguhhnsghinhesfhgrshhtmhgrihhlrdhfmheqnecuggftrf grthhtvghrnhepheffhfetudeivedtudduvedvkeduudffgeduhfffheekleevvdduvefh udffheffnecuffhomhgrihhnpegrnhhothhhvghrqdhnrghmvghsphgrtggvrdhishenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehfghhunhgs ihhnsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: id48c41f1:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 6 Dec 2022 08:56:35 -0500 (EST) In-Reply-To: <874ju96e2g.fsf@gmx.de> (Michael Albinus's message of "Mon, 05 Dec 2022 16:54:47 +0100") 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:250109 Archived-At: Hi Michael, On 05/12/2022 16:54 +0100, Michael Albinus wrote: >> 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? Maybe, and there's "get pods -A" which lists all pods. This will be limited to current "context" in k8s meaning (covering all namespaces in it). I could look into this in detail in few weeks, if you'd like me to. It's quite a busy time at work now :-) Filipp