Skip to content

Commit 78cca2a

Browse files
iQQBotroboquat
authored andcommitted
[supervisor] Add desktop IDE port to supervisor internal ports
1 parent 4d79bc8 commit 78cca2a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

components/supervisor/pkg/supervisor/supervisor.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,13 @@ func Run(options ...RunOption) {
190190
}
191191

192192
ctx, cancel := context.WithCancel(context.Background())
193+
194+
internalPorts := []uint32{uint32(cfg.IDEPort), uint32(cfg.APIEndpointPort), uint32(cfg.SSHPort)}
195+
desktopIDEPort := uint32(24000)
196+
if cfg.DesktopIDE != nil {
197+
internalPorts = append(internalPorts, desktopIDEPort)
198+
}
199+
193200
var (
194201
shutdown = make(chan ShutdownReason, 1)
195202
ideReady = &ideReadyState{cond: sync.NewCond(&sync.Mutex{})}
@@ -205,9 +212,7 @@ func Run(options ...RunOption) {
205212
ports.NewConfigService(cfg.WorkspaceID, gitpodConfigService, gitpodService),
206213
tunneledPortsService,
207214
slirp,
208-
uint32(cfg.IDEPort),
209-
uint32(cfg.APIEndpointPort),
210-
uint32(cfg.SSHPort),
215+
internalPorts...,
211216
)
212217
termMux = terminal.NewMux()
213218
termMuxSrv = terminal.NewMuxTerminalService(termMux)

0 commit comments

Comments
 (0)