Skip to content

fix: clarify healthcheck help defaults#4987

Open
immanuwell wants to merge 1 commit into
containerd:mainfrom
immanuwell:fix/run-healthcheck-help
Open

fix: clarify healthcheck help defaults#4987
immanuwell wants to merge 1 commit into
containerd:mainfrom
immanuwell:fix/run-healthcheck-help

Conversation

@immanuwell

Copy link
Copy Markdown
Contributor

small help text bug.

nerdctl run --help says --health-interval, --health-timeout, and --health-retries default to 30s or 3.
That is a bit off, tbh. 0 there means not set, then nerdctl uses the image value, or falls back later.

repro:

  1. GOOS=linux make binaries
  2. ./_output/nerdctl run --help | rg "health-(interval|timeout|retries)"

before this patch, the help text claims fixed defaults.
after this patch, it says what 0 really means. small thing, but less confusing and more honest.

Signed-off-by: immanuwell <pchpr.00@list.ru>
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