Skip to content

feat(workspaces): Add SSH Support for Workspaces

Shekhar Patnaik requested to merge spatnaik/ssh_support_for_workspaces into master

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

  1. Setup GitLab workspaces
  2. Create a new workspace.
  3. 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
  4. 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.

Edited by Shekhar Patnaik

Merge request reports