docs(kubernetes): add comment about dynamic port allocation limitation
All checks were successful
PR Review Automation / review (pull_request) Successful in 3m58s
Test / frontend-tests (pull_request) Successful in 1m23s
Test / frontend-typecheck (pull_request) Successful in 1m31s
Test / rust-fmt-check (pull_request) Successful in 12m6s
Test / rust-clippy (pull_request) Successful in 12m54s
Test / rust-tests (pull_request) Successful in 14m9s
All checks were successful
PR Review Automation / review (pull_request) Successful in 3m58s
Test / frontend-tests (pull_request) Successful in 1m23s
Test / frontend-typecheck (pull_request) Successful in 1m31s
Test / rust-fmt-check (pull_request) Successful in 12m6s
Test / rust-clippy (pull_request) Successful in 12m54s
Test / rust-tests (pull_request) Successful in 14m9s
This commit is contained in:
parent
c0318e8570
commit
ec257ef55f
@ -465,10 +465,14 @@ pub async fn start_port_forward(
|
||||
|
||||
// Use kubectl's dynamic port binding by specifying 0 as local port
|
||||
// This avoids race condition with port allocation
|
||||
// Note: Dynamic port allocation (when local_port=0) currently returns 0
|
||||
// The actual allocated port could be captured from kubectl's stderr/stdout
|
||||
// but this requires parsing kubectl output which is complex and error-prone
|
||||
// For now, users must specify a local port or use the default behavior
|
||||
let local_port = if request.local_port > 0 {
|
||||
request.local_port
|
||||
} else {
|
||||
0 // Let kubectl allocate dynamically
|
||||
0 // Let kubectl allocate dynamically (currently not captured)
|
||||
};
|
||||
|
||||
info!(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user