Skip to content

Commit c66305b

Browse files
committed
fixup
1 parent c0bcf41 commit c66305b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/supervisor/pkg/ports/ports.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ func (pm *Manager) updateState(ctx context.Context, exposed []ExposedPort, serve
273273
}
274274

275275
config, _, exists := pm.configs.Get(port.Port)
276+
// don't serve ports that are configured to be ignored-completely
276277
if exists && config.OnOpen == "ignore-completely" {
277278
continue
278279
}
@@ -794,6 +795,10 @@ func (pm *Manager) getStatus() []*api.PortsStatus {
794795
res := make([]*api.PortsStatus, 0, len(pm.state))
795796
for port := range pm.state {
796797
status := pm.getPortStatus(port)
798+
// make sure they are not listed in ports list
799+
if status.OnOpen == api.PortsStatus_ignore_completely {
800+
continue
801+
}
797802
res = append(res, status)
798803
}
799804
sort.SliceStable(res, func(i, j int) bool {

0 commit comments

Comments
 (0)