Skip to content

Commit ff33347

Browse files
authored
Add Notation to GetFSInfoFromConfigMap in pkg\ddc\juicefs\datasetinfo_parser.go (#4737)
Signed-off-by: yanning0306 <3356563488@qq.com>
1 parent 94470d4 commit ff33347

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pkg/ddc/juicefs/datasetinfo_parser.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ func parseCacheInfoFromConfigMap(configMap *v1.ConfigMap) (cacheinfo map[string]
5858
return configmapinfo, nil
5959
}
6060

61+
// GetFSInfoFromConfigMap retrieves file system information from a specified ConfigMap.
62+
// Parameters:
63+
// - client: A Kubernetes client used to interact with the cluster.
64+
// - name: The base name of the target ConfigMap.
65+
// - namespace: The namespace where the ConfigMap is located.
66+
// Returns:
67+
// - A map containing file system information parsed from the ConfigMap.
68+
// - An error if the ConfigMap retrieval or parsing fails.
6169
func GetFSInfoFromConfigMap(client client.Client, name string, namespace string) (info map[string]string, err error) {
6270
configMapName := fmt.Sprintf("%s-juicefs-values", name)
6371
configMap, err := kubeclient.GetConfigmapByName(client, configMapName, namespace)

0 commit comments

Comments
 (0)