flathub / flathub/com.visualstudio.code
Include vs-kubernetes/tools/kubectl in path.
- Langage dominant
- Shell
- Étoiles
- 217
- Forks
- 82
- Merge moyen
- 1 j 7 h
- PR mergées (30 j)
- 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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Ouvrez code.sh et inspectez la ligne 67, puis comparez les entrées de PATH avec l’emplacement de kubectl installé par l’extension Kubernetes. Incluez le chemin demandé vs-kubernetes/tools/kubectl et vérifiez que VS Code peut trouver kubectl lors de l’attachement à un pod en cours d’exécution.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- kubernetes, shell, vscode
- Domaine
- devops, devtools
- Type d'issue
- Bug
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 55/100