Skip to content

Fix case where health start interval is 0 uses default#46764

Merged
thaJeztah merged 1 commit intomoby:masterfrom
cpuguy83:fix_probe_interval
Nov 3, 2023
Merged

Fix case where health start interval is 0 uses default#46764
thaJeztah merged 1 commit intomoby:masterfrom
cpuguy83:fix_probe_interval

Conversation

@cpuguy83
Copy link
Member

@cpuguy83 cpuguy83 commented Nov 2, 2023

When the start interval is 0 we should treat that as unset. This is especially important for older API versions where we reset the value to 0.

Instead of using the default probe value we should be using the configured interval value (which may be a default as well) which gives us back the old behavior before support for start interval was added.

When the start interval is 0 we should treat that as unset.
This is especially important for older API versions where we reset the
value to 0.

Instead of using the default probe value we should be using the
configured `interval` value (which may be a default as well) which gives
us back the old behavior before support for start interval was added.

Signed-off-by: Brian Goff <[email protected]>
@cpuguy83 cpuguy83 requested a review from corhere November 2, 2023 20:10
@thaJeztah thaJeztah added status/4-merge kind/bugfix PR's that fix bugs labels Nov 3, 2023
@thaJeztah thaJeztah added this to the 25.0.0 milestone Nov 3, 2023
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah thaJeztah merged commit 5baf486 into moby:master Nov 3, 2023
@cpuguy83 cpuguy83 deleted the fix_probe_interval branch November 3, 2023 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

30s HealthStartInterval being applied to containers created with API 1.43 client

3 participants