You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(ansible): store relevant data on watch (#2067)
* refactor(ansible): store relevant data on watch
Bring all of the logic for how values are reconciled, and where
important values are stored, into the watches package. This allows us to
handle command line flags, environment variables, defaults, and values
from the watches file in one place with sane defaults.
- Add new functions to watches package `New()` and `Validate()`
- Move `getMaxWorkers()` to watches package (from runner)
- Handle command line arguments in watches package
* Don't pass flags to watches.Load()
Instead of giving all of the flags to `watches.Load()`, we should only
pass down the values that are needed.
Also update `New()` so that it's possible to create a valid watch.
* Log invalid value for maxWorkers and use default
0 commit comments