flathub / flathub/com.visualstudio.code

Include vs-kubernetes/tools/kubectl in path.

オープン
#412 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Shell
スター
217
フォーク
82
平均マージ
1日 7時間
マージ済み PR(30日)
1

説明

By using the official Kubernetes extension (_ms-kubernetes-tools.vscode-kubernetes-tools_), Visual Studio Code can automatically install binaries for kubectl, helm, and minikube.

Unfortunately, if you attempt to explore workloads and try to attach vscode to a running pod, you encounter the following error:

**Error running command remote-containers.attachToK8sContainerFromViewlet: A system error occurred (spawn kubectl ENOENT). This is likely caused by the extension that contributes remote-containers.attachToK8sContainerFromViewlet.**

To fix this issue, you can edit code.sh (line 67) by adding the following path:

**${XDG_DATA_HOME}/.local/state/vs-kubernetes/tools/kubectl**

After making this change, vscode is able to find the kubectl binary and the extension will be fully functional.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Open code.sh and inspect line 67, then compare the PATH entries with the kubectl location installed by the Kubernetes extension. Include the requested vs-kubernetes/tools/kubectl path and verify that VS Code can find kubectl when attaching to a running pod.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
kubernetes, shell, vscode
領域
devops, devtools
issue の種類
バグ
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。