flathub / flathub/com.visualstudio.code
Include vs-kubernetes/tools/kubectl in path.
- Lenguaje dominante
- Shell
- Estrellas
- 217
- Forks
- 82
- Merge medio
- 1 d 7 h
- PR fusionados (30 d)
- 1
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Abre code.sh e inspecciona la línea 67. A continuación, compara las entradas de PATH con la ubicación de kubectl instalada por la extensión de Kubernetes. Incluye la ruta solicitada vs-kubernetes/tools/kubectl y verifica que VS Code pueda encontrar kubectl al conectarse a un pod en ejecución.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- kubernetes, shell, vscode
- Área
- devops, devtools
- Tipo de issue
- Error
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 55/100