-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option for custom status readers
This commit adds the `CustomStatusReadersFactoryFunc` option to the StatusPoller's `Poll` method options so that consumers can provide custom status readers for certain GroupKinds (esp. CRDs). It also changes the `NewGenericStatusReader` func so that it accepts a statusFunc parameter so that consumers only have to implement that single func and use the genericStatusReader for all the boilerplate stuff (like fetching an object from the API). refs #382
- Loading branch information
Max Jonas Werner
committed
Jul 5, 2021
1 parent
c1a7c2d
commit 5b7b824
Showing
2 changed files
with
20 additions
and
5 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