mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
deploy: added json field tags for csi config map
This commit adds the json field tags for csi config map for encoding and decoding JSON. Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
@ -24,6 +24,8 @@ import (
|
||||
"reflect"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
cephcsi "github.com/ceph/ceph-csi/api/deploy/kubernetes"
|
||||
)
|
||||
|
||||
func TestGetClusterMappingInfo(t *testing.T) {
|
||||
@ -304,7 +306,7 @@ func TestFetchMappedClusterIDAndMons(t *testing.T) {
|
||||
mappingBasePath := t.TempDir()
|
||||
csiConfigFile := mappingBasePath + "/config.json"
|
||||
clusterMappingConfigFile := mappingBasePath + "/cluster-mapping.json"
|
||||
csiConfig := []ClusterInfo{
|
||||
csiConfig := []cephcsi.ClusterInfo{
|
||||
{
|
||||
ClusterID: "cluster-1",
|
||||
Monitors: []string{"ip-1", "ip-2"},
|
||||
|
Reference in New Issue
Block a user