{"id":19096541,"url":"https://github.com/sapcc/with-kubectl-port-forward","last_synced_at":"2025-04-30T14:12:27.720Z","repository":{"id":217504603,"uuid":"744046698","full_name":"sapcc/with-kubectl-port-forward","owner":"sapcc","description":"Execute \"kubectl port-forward\" for the duration of another command","archived":false,"fork":false,"pushed_at":"2025-04-11T04:36:22.000Z","size":125,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":45,"default_branch":"main","last_synced_at":"2025-04-11T05:34:51.034Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sapcc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-16T14:26:20.000Z","updated_at":"2025-04-11T04:36:25.000Z","dependencies_parsed_at":"2024-03-28T00:25:04.774Z","dependency_job_id":"1a0373b2-6ae7-4097-8cf4-3562dbef946e","html_url":"https://github.com/sapcc/with-kubectl-port-forward","commit_stats":null,"previous_names":["sapcc/with-kubectl-port-forward"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fwith-kubectl-port-forward","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fwith-kubectl-port-forward/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fwith-kubectl-port-forward/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fwith-kubectl-port-forward/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sapcc","download_url":"https://codeload.github.com/sapcc/with-kubectl-port-forward/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249514427,"owners_count":21284542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T03:37:01.283Z","updated_at":"2025-04-18T15:33:42.669Z","avatar_url":"https://github.com/sapcc.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# with-kubectl-port-forward\n\nAs the name implies, this tool executes `kubectl port-forward` for the duration\nof the supplied command. For example, Keppel has a PostgreSQL database that can\nbe reached passwordless on localhost, so the following works to log into the DB:\n\n```\n$ with-kubectl-port-forward service/keppel-postgresql 5432:5432 -- psql -U postgres -d keppel -h 127.0.0.1 -p 5432\n```\n\nThis is the same as:\n\n1. running `kubectl port-forward service/keppel-postgresql 5432:5432` in one shell\n2. running `psql -U postgres -d keppel -h 127.0.0.1 -p 5432` in another shell\n3. terminating kubectl once psql is done\n\n## Installation\n\nClone the repo, then run `make install` in it.\n\n## Usage\n\n```\n$ with-kubectl-port-forward \u003cport-forward-args\u003e... -- \u003ccommand\u003e...\n```\n\nThe exit status will be zero on success, or equivalent to the exit status of\nthe first failing child otherwise.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapcc%2Fwith-kubectl-port-forward","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsapcc%2Fwith-kubectl-port-forward","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapcc%2Fwith-kubectl-port-forward/lists"}