Skip to content

Commit 2b4e9c8

Browse files
committed
fix: add telemetry to the flag only if protocol is fuse2
Signed-off-by: [email protected] <[email protected]>
1 parent 7999704 commit 2b4e9c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/blob/nodeserver.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,10 @@ func (d *Driver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRe
409409
}
410410

411411
// Get mountOptions that the volume will be formatted and mounted with
412-
mountFlags = util.JoinMountOptions(mountFlags, []string{fmt.Sprintf("--telemetry=azpartner-aks/%s", d.Version)})
412+
if protocol == Fuse2 {
413+
// Adding telemetry tag to know that blob is been mounted through AKS
414+
mountFlags = util.JoinMountOptions(mountFlags, []string{fmt.Sprintf("--telemetry=azpartner-aks/%s", d.Version)})
415+
}
413416
mountOptions := mountFlags
414417
if ephemeralVol {
415418
mountOptions = util.JoinMountOptions(mountOptions, strings.Split(ephemeralVolMountOptions, ","))

0 commit comments

Comments
 (0)