func (clusterMDLoader *ClusterMDLoader) GetClusters(plan plantypes.Plan) map[string]collecttypes.ClusterMetadata {
	clusters := map[string]collecttypes.ClusterMetadata{}
	clusterMDPaths := plan.Spec.Configuration.TargetClusters
	for _, clusterMDPath := range clusterMDPaths {
		cm, err := clusterMDLoader.GetClusterMetadata(clusterMDPath)
		if err != nil {
			logrus.Errorf("Failed to load the cluster metadata at path %q Error: %q", clusterMDPath, err)
			continue
		}
		if len(cm.Spec.StorageClasses) == 0 {
			cm.Spec.StorageClasses = []string{common.DefaultStorageClassName}
			logrus.Debugf("No storage class in the cluster %s at path %q, adding [default] storage class", cm.Name, clusterMDPath)
		}
		clusters[cm.Name] = cm
	}
	return clusters
}
GetClusters loads list of clusters
package configuration
import (
	"fmt"
	"github.com/konveyor/move2kube/common"
	collecttypes "github.com/konveyor/move2kube/types/collection"
	plantypes "github.com/konveyor/move2kube/types/plan"
	"github.com/sirupsen/logrus"
)
type ClusterMDLoader struct {
}
func (clusterMDLoader *ClusterMDLoader) UpdatePlan(plan *plantypes.Plan) error {
	filePaths, err := common.GetFilesByExt(common.AssetsPath, []string{".yml", ".yaml"})
	if err != nil {
		logrus.Warnf("Failed to fetch the cluster metadata yamls at path %q Error: %q", common.AssetsPath, err)
		return err
	}
	for _, filePath := range filePaths {
		cm, err := clusterMDLoader.GetClusterMetadata(filePath)
		if err != nil {
			continue
		}
		plan.Spec.Configuration.TargetClusters[cm.Name] = filePath
	}
	return nil
}