-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cilium: Don't report health error when disabled
When the user configures --enable-health-checking=false, 'cilium status' would previously print: $ cilium status ... Cluster health: Warning cilium-health daemon unreachable This would occur despite the user explicitly disabling the feature. To better reflect whether the feature is enabled or not, check in the status response whether there is a health endpoint. If there is one, then the feature is enabled and we can query & print its status. If there isn't one, then the feature is disabled and we won't get a successful response anyway, so just report back that the feature is disabled instead: $ cilium status ... Cluster health: Probe disabled Signed-off-by: Joe Stringer <joe@cilium.io>
- Loading branch information
1 parent
67ac052
commit 5cfd761
Showing
3 changed files
with
19 additions
and
2 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