forked from linkerd/linkerd2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
healthcheck: simplify Checker construction with a builder (linkerd#5475)
Currently, Each new instance of `Checker` type have to manually set all the fields with the `NewChecker()`, even though most use-cases are fine with the defaults. This branch makes this simpler by using the Builder pattern, so that the users of `Checker` can override the defaults by using specific field methods when needed. Thus simplifying the code. This also removes some of the methods that were specific to tests, and replaces them with the currently used ones. Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
- Loading branch information
1 parent
bce3547
commit 68c02d8
Showing
5 changed files
with
138 additions
and
82 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
Oops, something went wrong.