Skip to content

Commit

Permalink
feat(provisioner): update analytics pkg
Browse files Browse the repository at this point in the history
Signed-off-by: Niladri Halder <[email protected]>
  • Loading branch information
niladrih committed Jun 17, 2024
1 parent 9097e94 commit fdf9496
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cmd/provisioner-localpv/app/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const (
// DefaultCASType Event application name constant for volume event
DefaultCASType string = "localpv"
// DefaultUnknownReplicaCount is the default replica count
DefaultUnknownReplicaCount string = "replica:1"
DefaultUnknownReplicaCount string = "1"
)

// NewProvisioner will create a new Provisioner object and initialize
Expand Down Expand Up @@ -211,10 +211,10 @@ func sendEventOrIgnore(pvcName, pvName, capacity, stgType, method string) {
analytics.New().CommonBuild(stgType).ApplicationBuilder().
SetVolumeName(pvName).
SetVolumeClaimName(pvcName).
SetLabel(analytics.EventLabelCapacity).
SetAction(DefaultUnknownReplicaCount).
SetReplicaCount(DefaultUnknownReplicaCount).
SetCategory(method).
SetVolumeCapacity(capacity).Send()
SetVolumeCapacity(capacity).
Send()
}

// validateVolumeSource validates datasource field of the pvc.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.19
require (
github.com/onsi/ginkgo v1.16.4
github.com/onsi/gomega v1.27.4
github.com/openebs/google-analytics-4 v0.1.0
github.com/openebs/google-analytics-4 v0.2.0
github.com/openebs/maya v1.12.1-0.20211022052259-bd98908028af
github.com/pkg/errors v0.9.1
github.com/spf13/cobra v1.1.3
Expand Down

0 comments on commit fdf9496

Please sign in to comment.