-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a manual trigger for watch mode #1085
Conversation
171d545
to
d1634ba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
little nit, otherwise LGTM
pkg/skaffold/watch/triggers.go
Outdated
// Trigger describes a mechanism that triggers the watch. | ||
type Trigger interface { | ||
Start() (<-chan bool, func()) | ||
WatchingForChanges(io.Writer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Watching -> Watch
Signed-off-by: David Gageot <david@gageot.net>
d1634ba
to
62b5ff6
Compare
Codecov Report
@@ Coverage Diff @@
## master #1085 +/- ##
==========================================
- Coverage 42.57% 42.43% -0.14%
==========================================
Files 71 72 +1
Lines 3239 3280 +41
==========================================
+ Hits 1379 1392 +13
- Misses 1727 1754 +27
- Partials 133 134 +1
Continue to review full report at Codecov.
|
What if we had implemented manual triggering as a different watcher altogether? Since really its a I still think you always want both at the same time |
@r2d4 with current code, we could do both but I have no idea how that would work. |
One can now run
skaffold dev --trigger=manual
to:The default trigger type is
polling
. Another trigger type could expose a named pipe or socket to send refresh commands.Signed-off-by: David Gageot david@gageot.net