flathub / flathub/com.visualstudio.code

Include vs-kubernetes/tools/kubectl in path.

Đang mở
#412 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Shell
Star
217
Fork
82
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
1

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.