Skip to content

Commit 68fcbd8

Browse files
author
Abhishek Agarwal
authored
chore(analytics): Send install & ping events on lvm-localpv start (#154) (#155)
Signed-off-by: Abhishek Agarwal <[email protected]>
1 parent 44c8b85 commit 68fcbd8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/driver/controller.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,12 @@ func (cs *controller) init() error {
218218
klog.Infof("initializing csi provisioning leak protection controller")
219219
pvcInformer := kubeInformerFactory.Core().V1().PersistentVolumeClaims()
220220
go pvcInformer.Informer().Run(stopCh)
221+
222+
if lvm.GoogleAnalyticsEnabled == "true" {
223+
analytics.New().Build().InstallBuilder(true).Send()
224+
go analytics.PingCheck()
225+
}
226+
221227
if cs.leakProtection, err = csipv.NewLeakProtectionController(kubeClient,
222228
pvcInformer, cs.driver.config.DriverName,
223229
func(pvc *corev1.PersistentVolumeClaim, volumeName string) error {

0 commit comments

Comments
 (0)