Skip to content

Make kubectl port-forward actually restart when it exits - #134

Merged
thomasjm merged 1 commit into
masterfrom
fix-port-forward-restart
Sep 1, 2026
Merged

thomasjm merged 1 commit into
masterfrom
fix-port-forward-restart

Conversation

@thomasjm

@thomasjm thomasjm commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

The restarter loop passed the same log Handle to createProcess on every iteration, but createProcess closes the handles it's given, so the second iteration threw and killed the thread — leaving the local port unbound for the rest of the run. Also gates the Postgres readiness probe on the pod IP, since pg_isready -h 127.0.0.1 reports ready against the temporary server the bitnami entrypoint runs during setup, minutes before the real one starts.

@thomasjm
thomasjm force-pushed the fix-port-forward-restart branch from 8ddd1ce to 5a36a44 Compare September 1, 2026 09:22
@thomasjm
thomasjm merged commit fcbb673 into master Sep 1, 2026
23 checks passed
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.

1 participant