{"id":19002298,"url":"https://github.com/linkerd/linkerd-await","last_synced_at":"2025-10-08T14:03:13.827Z","repository":{"id":36953845,"uuid":"177339911","full_name":"linkerd/linkerd-await","owner":"linkerd","description":"A program that blocks on linkerd readiness","archived":false,"fork":false,"pushed_at":"2025-09-29T17:48:47.000Z","size":481,"stargazers_count":79,"open_issues_count":0,"forks_count":17,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-09-29T19:37:33.475Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":false,"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/linkerd.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-03-23T21:04:06.000Z","updated_at":"2025-09-29T17:48:50.000Z","dependencies_parsed_at":"2024-05-16T19:49:29.806Z","dependency_job_id":"1709b95c-e661-4c93-953c-ddcf774dbf89","html_url":"https://github.com/linkerd/linkerd-await","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/linkerd/linkerd-await","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkerd%2Flinkerd-await","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkerd%2Flinkerd-await/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkerd%2Flinkerd-await/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkerd%2Flinkerd-await/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linkerd","download_url":"https://codeload.github.com/linkerd/linkerd-await/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkerd%2Flinkerd-await/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278956330,"owners_count":26075221,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08T18:14:34.276Z","updated_at":"2025-10-08T14:03:13.822Z","avatar_url":"https://github.com/linkerd.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# linkerd-await\n\nA command-wrapper that polls Linkerd for readiness until it becomes ready and\nonly then executes a command.\n\n## Usage\n\n```text\nlinkerd-await 0.2.9\nWait for linkerd to become ready before running a program\n\nUsage: linkerd-await [OPTIONS] [CMD] [ARGS]...\n\nArguments:\n  [CMD]      The command to run after linkerd is ready\n  [ARGS]...  Arguments to pass to CMD if specified\n\nOptions:\n  -p, --port \u003cPORT\u003e\n          The port of the local Linkerd proxy admin server [default: 4191]\n  -b, --backoff \u003cBACKOFF\u003e\n          Time to wait after a failed readiness check [default: 1s]\n  -S, --shutdown\n          Forks the program and triggers proxy shutdown on completion\n  -v, --verbose\n          Causes linkerd-await to print an error message when disabled [env: LINKERD_AWAIT_VERBOSE=]\n  -t, --timeout \u003cTIMEOUT\u003e\n          Causes linked-await to fail when the timeout elapses before the proxy becomes ready\n      --timeout-fatal[=\u003cTIMEOUT_FATAL\u003e]\n          Controls whether a readiness timeout failure prevents CMD from running [default: true] [possible values: true, false]\n  -h, --help\n          Print help\n  -V, --version\n          Print version\n```\n\n## Examples\n\n### Dockerfile\n\n```dockerfile\n# Create a base layer with linkerd-await from a recent release.\nFROM docker.io/curlimages/curl:latest as linkerd\nARG LINKERD_AWAIT_VERSION=v0.3.0\nRUN curl -sSLo /tmp/linkerd-await https://github.com/linkerd/linkerd-await/releases/download/release%2F${LINKERD_AWAIT_VERSION}/linkerd-await-${LINKERD_AWAIT_VERSION}-amd64 \u0026\u0026 \\\n    chmod 755 /tmp/linkerd-await\n\n# Build your application with whatever environment makes sense.\nFROM myapp-build as app\nWORKDIR /app\nRUN make build\n\n# Package the application wrapped by linkerd-await. Note that the binary is\n# static so it can be used in `scratch` images:\nFROM scratch\nCOPY --from=linkerd /tmp/linkerd-await /linkerd-await\nCOPY --from=app /app/myapp /myapp\n# In this case, we configure the proxy to be shutdown after `myapp` completes\n# running. This is only really needed for jobs where the application is\n# expected to complete on its own (namely, `Jobs` and `Cronjobs`)\nENTRYPOINT [\"/linkerd-await\", \"--shutdown\", \"--\"]\nCMD  [\"/myapp\"]\n```\n\n### Disabling `linkerd-await` at runtime\n\nThe `LINKERD_AWAIT_DISABLED` (or `LINKERD_DISABLED`) environment variable can\nbe set to bypass `linkerd-await`'s readiness checks. This way,\n`linkerd-await` may be controlled by overriding a default environment\nvariable:\n\n```yaml\n    # ...\n    spec:\n      containers:\n        - name: myapp\n          env:\n            - name: LINKERD_AWAIT_DISABLED\n              value: \"Linkerd is disabled ;(\"\n          # ...\n```\n\n\u003c!-- markdownlint-configure-file { \"MD013\": { \"code_blocks\": false } } --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkerd%2Flinkerd-await","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkerd%2Flinkerd-await","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkerd%2Flinkerd-await/lists"}