Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for browsing file system of Kubernetes pods (containers) #644
to get the listings of files starting at /. Show them as tree nodes. Also using the command:
and showing the returned content in a editor.
BTW the extension also shows the initContainers and Containers in a pod. Shows the filesystems of the running containers.
Both supported by the extension above.
Lastly even better option would be to support dual pane file browser for local and container filesystem. Use the the:
to copy files from/to.
Use the https://code.visualstudio.com/api/references/vscode-api#FileSystemProvider API to implement the container filesystem browser.
This is super cool! Thank you for letting us know about this @sandipchitale! Is there anything specifically you'd like the core extension to do? Because it looks like your project is working great as an extension that builds on top via the API, and if we implemented this ourselves then it would just suck the oxygen out of your project. But if there are limitations in the core extension API that are making your life harder, or if we can amplify or contribute to your work, let's talk!
Thanks for letting us know about this!
@itowlson I am glad you find the extension useful. I will be happy for it to continue as a separate extension. It could be an example of how to extend your extension via API.
Your API is already good. The only thing I would request is availability of context of custom nodes to be used in the
BTW I am looking into implementing (time permitting) the dual pane idea for being able to copy files to/from container easily. I guess this is sort of possible using View file command and the saving the
The extension now supports shelling into Kubernetes nodes using nsenter (on MS Windows only)
I guess you can close this issue.
BTW I have another extension based on your API: https://marketplace.visualstudio.com/items?itemName=sandipchitale.kubernetes-no-load-on-select
@bhack thanks for the reference. I agree that will be more complete solution. My integration was a quick and simple implementation to get browsing going.
In first comment I suggested using FileSystemProvider based on Kubectl command integration via this extension.
For anyone coming here...the above extension supports:
BTW this issue can be closed if there are no plans to implement the issue functionality in the Kubernetes extension's code.