Skip to content

fix: preserve shutdown mode when readiness checks are disabled - #571

Open
immanuwell wants to merge 1 commit into
linkerd:mainfrom
immanuwell:fix/shutdown-when-disabled
Open

fix: preserve shutdown mode when readiness checks are disabled#571
immanuwell wants to merge 1 commit into
linkerd:mainfrom
immanuwell:fix/shutdown-when-disabled

Conversation

@immanuwell

Copy link
Copy Markdown
Contributor

Small follow-up to #20.

LINKERD_AWAIT_DISABLED is meant to skip readiness checks, but it also skipped --shutdown. Kinda sneaky. For jobs and cronjobs that means the child can exit, but the proxy never gets /shutdown.

This patch keeps the disable env scoped to readiness checks only, and adds a regression test for it.

Repro:

  1. Start a local admin server on port 4191 and count POST /shutdown.
  2. Run LINKERD_AWAIT_DISABLED=1 linkerd-await --shutdown -- /bin/true.
  3. Before this patch, the counter stays at 0.
  4. With this patch, it becomes 1.

Signed-off-by: immanuwell <pchpr.00@list.ru>
@immanuwell
immanuwell requested a review from a team as a code owner June 6, 2026 17:54
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