From 731155b3dc8fb9ffbe5bf2d673c38ca0509e1c33 Mon Sep 17 00:00:00 2001
From: Madhu Rajanna <madhupr007@gmail.com>
Date: Mon, 2 Sep 2024 10:24:47 +0200
Subject: [PATCH] rbd: set volume condition for block

set volume condition as healthy if
we dont have any errors for the block
mode as well.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
---
 internal/rbd/nodeserver.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/internal/rbd/nodeserver.go b/internal/rbd/nodeserver.go
index ff699aeadd6f..5308e91294a4 100644
--- a/internal/rbd/nodeserver.go
+++ b/internal/rbd/nodeserver.go
@@ -1365,6 +1365,10 @@ func blockNodeGetVolumeStats(ctx context.Context, targetPath string) (*csi.NodeG
 				Unit:  csi.VolumeUsage_BYTES,
 			},
 		},
+		VolumeCondition: &csi.VolumeCondition{
+			Abnormal: false,
+			Message:  "volume is in a healthy condition",
+		},
 	}, nil
 }