From a0829e9e936239c95d6c6294e64ee701617b0589 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Mon, 20 Dec 2021 19:33:52 +0530 Subject: [PATCH] rbd: remove json tag from rbdVolume struct as we are no longer supporting the v1.x version of cephcsi. removing the json tag used to store rbd volume details in configmap. Signed-off-by: Madhu Rajanna --- internal/rbd/rbd_util.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/rbd/rbd_util.go b/internal/rbd/rbd_util.go index ed758d8c7..915412e8a 100644 --- a/internal/rbd/rbd_util.go +++ b/internal/rbd/rbd_util.go @@ -153,21 +153,21 @@ type rbdVolume struct { // Parent Pool is the pool that contains the parent image. ParentPool string imageFeatureSet librbd.FeatureSet - AdminID string `json:"adminId"` - UserID string `json:"userId"` - Mounter string `json:"mounter"` + AdminID string + UserID string + Mounter string ReservedID string MapOptions string UnmapOptions string LogDir string LogStrategy string - VolName string `json:"volName"` - MonValueFromSecret string `json:"monValueFromSecret"` - VolSize int64 `json:"volSize"` + VolName string + MonValueFromSecret string + VolSize int64 // RequestedVolSize has the size of the volume requested by the user and // this value will not be updated when doing getImageInfo() on rbdVolume. RequestedVolSize int64 - DisableInUseChecks bool `json:"disableInUseChecks"` + DisableInUseChecks bool readOnly bool Primary bool ThickProvision bool