forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
status: don't serve /healthz until all probes completed once
Ensure that all status probes have completed at least once before starting serving the agent /healthz API. This prevents possible race conditions causing the agent to exit early from the startup probe phase if the healthz endpoint is queried before initializing any of the fields. Overall, the additional wait time is not expected to introduce any concern, considering that practically all probes should return quickly as don't involve expensive operations or API calls. The only exception is the k8s probe, but at that point of the initialization we are already guaranteed to have connected to the k8s API server. Signed-off-by: Marco Iorio <[email protected]>
- Loading branch information
1 parent
6d5fd6d
commit dbb4bda
Showing
4 changed files
with
70 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters