-
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
Enable file-watching for debug
#4089
Enable file-watching for debug
#4089
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4089 +/- ##
==========================================
- Coverage 71.77% 71.74% -0.04%
==========================================
Files 324 324
Lines 12499 12502 +3
==========================================
- Hits 8971 8969 -2
- Misses 2958 2965 +7
+ Partials 570 568 -2
Continue to review full report at Codecov.
|
PTAL @dgageot |
Yeah, it works because it uses a different temporary variable. When I start But you're right — I should make a test here. |
Add `dev`-like hidden flags for `--auto-build`, `--auto-deploy`, and `--auto-sync`, but default to being disabled to avoid redeploying on file changes. To workaround spf13/pflag#257, both `dev` and `debug` use local copies of the flags to ensure their settings are independent.
05c454a
to
9dc488c
Compare
PTAL @dgageot — added some tests to verify that the arguments are set and are independent of each other. I de-aliased |
It turns out that our runner creation depends on the implicit initialization of the trigger type from
|
Using the common flags is much nicer. |
PTAL @dgageot |
Fixes #2351
Fixes #3272
Fixes #4129
Description
Pulls in the
dev
-like arguments to control image rebuilding and redeploying such as:--watch-image
to restrict the images to be monitored--trigger
— for this I kept the same "notify" default, but I wonder if manual would make more sense--auto-build
,--auto-deploy
, and--auto-sync
but defaulting tofalse
.This at least allows users to enable rebuilding and redeploying on change, which is useful for Go in particular.
User facing changes
skaffold debug
now supports listing images to watch and a watch-trigger, though they are essentially non-functional and not worth mentioning since--auto-build
,--auto-deploy
, and--auto-sync
default tofalse
, and are hidden.