chore(analytics): Send install & ping events on zfs-localpv start (#386)

Signed-off-by: Abhishek Agarwal <abhishek.agarwal@mayadata.io>
This commit is contained in:
Abhishek Agarwal 2021-09-16 16:19:42 +05:30 committed by GitHub
parent 9d2966057a
commit d7115eefe9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,