feat(workspaces): Add SSH Support for Workspaces
What does this MR do and why?
The Kubernetes Service generated from the Devfile should have SSH ports exposed i.e. 2222 so that IDEs such as VS Code and JetBrains can connect to it. This MR adds SSH port 2222 to the generated resources from the Devfile.
Fixes: #416470 (closed)
Screenshots or screen recordings
N/A
How to set up and validate locally
- Setup GitLab workspaces
- Create a new workspace.
- Check the kubernetes service generated in the cluster (
kubectl get svc -A
). Make a note of the namespace and name of the service for your workspace - Export the yaml for the service
kubectl get svc <service_name> -n <namespace> > test.yaml
. Test.yaml should have the SSH port 2222 in the list of exposed ports.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Shekhar Patnaik