flathub / flathub/com.visualstudio.code

Include vs-kubernetes/tools/kubectl in path.

Open
#412 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Shell
Stars
217
Forks
82
Avg merge
1d 7h
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.