Skip to content

Commit

Permalink
run watchers only in server mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciek Sufa committed Nov 18, 2015
1 parent 836da38 commit dd5601b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/kubernetes/config/initializers/watchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ def build_client_options
Celluloid.logger = Rails.logger
$CELLULOID_DEBUG = true

Kubernetes::Cluster.all.each { |cluster| Kubernetes::Util::start_watcher(cluster) }
Kubernetes::Cluster.all.each { |cluster| Kubernetes::Util::start_watcher(cluster) } if ENV['SERVER_MODE']

0 comments on commit dd5601b

Please sign in to comment.