From 79bd1613d5fa16127bcc21b55eacea6f60d3ef8c Mon Sep 17 00:00:00 2001 From: Abhinandan Purkait Date: Wed, 22 Nov 2023 14:10:09 +0000 Subject: [PATCH] fix(event): set replica count to action rather than value Signed-off-by: Abhinandan Purkait --- pkg/kubernetes/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubernetes/client/client.go b/pkg/kubernetes/client/client.go index 73b61d7..0aea1af 100644 --- a/pkg/kubernetes/client/client.go +++ b/pkg/kubernetes/client/client.go @@ -322,7 +322,7 @@ func SendEventOrIgnore(pvcName, pvName, capacity, replicaCount, stgType, method SetVolumeName(pvName). SetVolumeClaimName(pvcName). SetLabel(analytics.EventLabelCapacity). - SetValue(GetReplicaCount(replicaCount, method)). + SetAction(GetReplicaCount(replicaCount, method)). SetCategory(method). SetVolumeCapacity(capacity).Send() }