From 9d13db7c215fd2cbd7e022ec696ec90a2d49b5da Mon Sep 17 00:00:00 2001 From: wiumoo Date: Tue, 24 Mar 2026 18:36:56 +0800 Subject: [PATCH] Add comments/notation to IsMountWithConfigMap in pkg/ddc/alluxio/ufs.go. --- pkg/ddc/alluxio/ufs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/ddc/alluxio/ufs.go b/pkg/ddc/alluxio/ufs.go index bb13f15c681..9d5dc78d9f7 100644 --- a/pkg/ddc/alluxio/ufs.go +++ b/pkg/ddc/alluxio/ufs.go @@ -25,6 +25,9 @@ import ( "os" ) +// IsMountWithConfigMap checks if the mount configuration is stored in a ConfigMap. +// It looks up the environment variable MountConfigStorage and compares it to ConfigmapStorageName. +// If the environment variable is set and matches, it returns true; otherwise, it returns the default value true. func IsMountWithConfigMap() bool { if envVal, exists := os.LookupEnv(MountConfigStorage); exists { return envVal == ConfigmapStorageName