Skip to content

Support detached port forwarding#169

Merged
davdhacs merged 8 commits into
mainfrom
mc/detached-port-forwarding
May 11, 2026
Merged

Support detached port forwarding#169
davdhacs merged 8 commits into
mainfrom
mc/detached-port-forwarding

Conversation

@mclasmeier
Copy link
Copy Markdown
Collaborator

No description provided.

Moritz Clasmeier and others added 6 commits May 11, 2026 20:12
Add StartDetached() to portforward.Manager that spawns kubectl
port-forward in a new session (setsid) so it survives the parent
process exiting. Returns the endpoint and PID for later cleanup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use detached port-forward in envrc mode so the kubectl port-forward
process survives roxie exiting. The PID is written to the envrc file
as ROXIE_PORT_FORWARD_PID for later cleanup.

This removes the restrictions that prevented --envrc from being
combined with --port-forwarding or --exposure=none, enabling roxie
to work on kind clusters in non-interactive (CI) mode.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Stop passing --exposure=loadbalancer explicitly in e2e tests and rely
on roxie's built-in cluster type detection to set the appropriate
defaults (e.g. exposure=none + port-forwarding on kind, loadbalancer
on GKE).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Read ROXIE_PORT_FORWARD_PID from the environment on deployer init and
kill the process during teardownCentral, so the detached port-forward
started in envrc mode doesn't leak.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mclasmeier mclasmeier requested a review from davdhacs May 11, 2026 18:50
Moritz Clasmeier added 2 commits May 11, 2026 21:13
@mclasmeier
Copy link
Copy Markdown
Collaborator Author

feel free to merge when CI is green.

Copy link
Copy Markdown
Collaborator

@davdhacs davdhacs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davdhacs davdhacs merged commit 94d603e into main May 11, 2026
11 checks passed
@mclasmeier mclasmeier deleted the mc/detached-port-forwarding branch May 18, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants