-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use of CRD to run scrapers (#288)
* feat: use of CRD to run scrapers * chore: rename kind to ScrapeConfig in all fixtures * chore: rename v1.ConfigScraper to ScraperSpec and modified ScraperCRD structure * refactor: modify Run() function to only accept a single scrape config. Eventually the scrape config will come from the context and the context must be tied to a single configuration. * refactor: use scrapeConfig instead of scraperSpec * refactor: the Scrape() method only accepts the context. The second param spec is removed. * chore: rename ctx.Scraper to ctx.ScrapeConfig * refactor: do not store id in the scrape context. It's already there in ScrapeConfig * NewScrapeContext accepts a context instead of scrape config id * chore: removed db ID field from scraperSpec * chore: final cleanup
- Loading branch information
1 parent
a6c47a7
commit 6a34e5e
Showing
49 changed files
with
677 additions
and
579 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
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.