flyte
flyte copied to clipboard
feat: add custom port support for sandbox
Tracking issue
Closes #7346
Why are the changes needed?
Currently the sandbox uses fixed port mappings internally, so users cannot run the sandbox on custom ports when the default ones are already occupied.
What changes were proposed in this pull request?
- Added support for custom sandbox port mappings through a new
--portsflag. - Updated sandbox configuration to accept custom port mappings.
- Updated sandbox startup logic to use custom ports when provided.
- Preserved existing default behavior when no custom ports are supplied.
How was this patch tested?
- Ran
go build ./... - Verified
flytectl sandbox start --help - Confirmed the
--portsflag appears correctly.
Could you resolve the merge conflicts?