Skip to content

Commit

Permalink
rbd: set volume condition for block
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Madhu-1 committed Sep 2, 2024
1 parent 1ccd1fa commit 5ccb71f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/rbd/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 5ccb71f

Please sign in to comment.