Skip to content

Commit

Permalink
set poll to default false. set watcher dockerfile entrypoint
Browse files Browse the repository at this point in the history
Signed-off-by: Bojan <dbojan@gmail.com>
  • Loading branch information
bojand committed Aug 19, 2021
1 parent 43df788 commit 3fb4118
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/fluent-bit-watcher/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ COPY conf/fluent-bit.conf conf/parsers.conf /fluent-bit/etc/
COPY --from=buildergo /fluent-bit/fluent-bit /fluent-bit/bin/fluent-bit-watcher

# Entry point
CMD ["/fluent-bit/bin/fluent-bit-watcher"]
ENTRYPOINT ["/fluent-bit/bin/fluent-bit-watcher"]
2 changes: 1 addition & 1 deletion cmd/fluent-bit-watcher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func main() {
flag.StringVar(&binPath, "b", defaultBinPath, "The fluent bit binary path.")
flag.StringVar(&configPath, "c", defaultCfgPath, "The config file path.")
flag.StringVar(&watchPath, "watch-path", defaultWatchDir, "The path to watch.")
flag.BoolVar(&poll, "poll", true, "Use poll watcher instead of ionotify.")
flag.BoolVar(&poll, "poll", false, "Use poll watcher instead of ionotify.")
flag.DurationVar(&pollInterval, "poll-interval", defaultPollInterval, "Poll interval if using poll watcher.")

flag.Parse()
Expand Down

0 comments on commit 3fb4118

Please sign in to comment.