Skip to content

Commit

Permalink
chore(analytics): Send install & ping events on zfs-localpv start (#386
Browse files Browse the repository at this point in the history
…) (#387)

Signed-off-by: Abhishek Agarwal <[email protected]>
  • Loading branch information
Abhishek Agarwal authored Sep 16, 2021
1 parent 433e4c3 commit 0f27f16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/driver/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ func (cs *controller) init() error {
go cs.k8sNodeInformer.Run(stopCh)
go cs.zfsNodeInformer.Run(stopCh)

if zfs.GoogleAnalyticsEnabled == "true" {
analytics.New().Build().InstallBuilder(true).Send()
go analytics.PingCheck()
}

// wait for all the caches to be populated.
klog.Info("waiting for k8s & zfs node informer caches to be synced")
cache.WaitForCacheSync(stopCh,
Expand Down

0 comments on commit 0f27f16

Please sign in to comment.