From 2071e0614f3b1b47a4f90bcb85265840f52a6773 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Tue, 16 Jul 2019 16:06:36 +0200 Subject: [PATCH] Default to notify trigger Fixes #1566 Signed-off-by: David Gageot --- cmd/skaffold/app/cmd/dev.go | 2 +- docs/content/en/docs/references/cli/_index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/skaffold/app/cmd/dev.go b/cmd/skaffold/app/cmd/dev.go index 950d389c7fd..7b765ad93c8 100644 --- a/cmd/skaffold/app/cmd/dev.go +++ b/cmd/skaffold/app/cmd/dev.go @@ -34,7 +34,7 @@ func NewCmdDev() *cobra.Command { WithDescription("Run a pipeline in development mode"). WithCommonFlags(). WithFlags(func(f *pflag.FlagSet) { - f.StringVar(&opts.Trigger, "trigger", "polling", "How are changes detected? (polling, manual or notify)") + f.StringVar(&opts.Trigger, "trigger", "notify", "How are changes detected? (polling, manual or notify)") f.StringSliceVarP(&opts.TargetImages, "watch-image", "w", nil, "Choose which artifacts to watch. Artifacts with image names that contain the expression will be watched only. Default is to watch sources for all artifacts") f.IntVarP(&opts.WatchPollInterval, "watch-poll-interval", "i", 1000, "Interval (in ms) between two checks for file changes") }). diff --git a/docs/content/en/docs/references/cli/_index.md b/docs/content/en/docs/references/cli/_index.md index a497cd8a8f2..6b1243198d4 100644 --- a/docs/content/en/docs/references/cli/_index.md +++ b/docs/content/en/docs/references/cli/_index.md @@ -404,7 +404,7 @@ Options: --skip-tests=false: Whether to skip the tests after building --tail=true: Stream logs from deployed objects --toot=false: Emit a terminal beep after the deploy is complete - --trigger='polling': How are changes detected? (polling, manual or notify) + --trigger='notify': How are changes detected? (polling, manual or notify) -w, --watch-image=[]: Choose which artifacts to watch. Artifacts with image names that contain the expression will be watched only. Default is to watch sources for all artifacts -i, --watch-poll-interval=1000: Interval (in ms) between two checks for file changes