Skip to content

feat: add custom port support for sandbox#7360

Open
muskan-creates352 wants to merge 3 commits into
flyteorg:masterfrom
muskan-creates352:final-real-clean-ports
Open

feat: add custom port support for sandbox#7360
muskan-creates352 wants to merge 3 commits into
flyteorg:masterfrom
muskan-creates352:final-real-clean-ports

Conversation

@muskan-creates352
Copy link
Copy Markdown

Tracking issue

Closes #7346

Why are the changes needed?

The sandbox currently uses fixed port mappings by default. This becomes an issue when those ports are already occupied on the local machine, making it difficult to start the sandbox in some development environments.

What changes were proposed in this pull request?

This PR adds support for custom sandbox port mappings through a new --ports flag.

Changes made:

  • Added a Ports field to the sandbox configuration.
  • Updated sandbox startup logic to use custom ports when provided.
  • Updated Docker port parsing to accept user-defined mappings.
  • Preserved the existing default behavior when custom ports are not specified.

Example usage:

flytectl sandbox start --ports 8080:30081

How was this patch tested?

  • Ran go build ./...
  • Verified that the sandbox commands compile successfully.
  • Checked that flytectl sandbox start --help shows the new --ports flag correctly.

Checklist

  • All commits are signed-off.
  • Verified changes locally.

Signed-off-by: Muskan Kumari <er.muskan09@gmail.com>
@github-actions github-actions Bot added the flyte label May 10, 2026
Signed-off-by: Muskan Kumari <er.muskan09@gmail.com>
Signed-off-by: Muskan Kumari <er.muskan09@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant