Skip to content

feat(ui): make federated dev server ports configurable#2563

Open
mturley wants to merge 1 commit intokubeflow:mainfrom
mturley:feat/configurable-federated-ports
Open

feat(ui): make federated dev server ports configurable#2563
mturley wants to merge 1 commit intokubeflow:mainfrom
mturley:feat/configurable-federated-ports

Conversation

@mturley
Copy link
Copy Markdown
Contributor

@mturley mturley commented Apr 9, 2026

Summary

  • Add FEDERATED_FRONTEND_PORT and FEDERATED_BFF_PORT Make variables with conditional assignment (?=) to clients/ui/Makefile
  • Defaults remain unchanged (9100 for frontend, 4000 for BFF)
  • Allows overriding ports via environment variables, enabling multiple federated dev environments to run simultaneously on different ports

Motivation

When working with multiple git worktrees (e.g. working with agents on multiple branches or reviewing/testing multiple PRs), each worktree needs its own set of dev servers. Currently the federated dev targets hardcode PORT=9100 and PORT=4000, so only one instance can run at a time. This change makes the ports configurable while preserving the existing defaults.

Test plan

  • Run make dev-start-federated with no env vars — should behave identically to before (ports 9100 and 4000)
  • Run FEDERATED_FRONTEND_PORT=9200 FEDERATED_BFF_PORT=4100 make dev-start-federated — should start on the overridden ports

🤖 Generated with Claude Code

Add FEDERATED_FRONTEND_PORT and FEDERATED_BFF_PORT Make variables with
conditional assignment (?=) so they can be overridden via environment
variables. This allows running multiple federated dev environments
simultaneously on different ports.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Mike Turley <mike.turley@alum.cs.umass.edu>
@google-oss-prow google-oss-prow bot requested review from chambridge and fege April 9, 2026 20:16
@google-oss-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from mturley. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@manaswinidas
Copy link
Copy Markdown
Contributor

/retest

@Philip-Carneiro
Copy link
Copy Markdown
Contributor

/lgtm

@google-oss-prow
Copy link
Copy Markdown
Contributor

@Philip-Carneiro: changing LGTM is restricted to collaborators

Details

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants