Skip to content

Commit d14dcc7

Browse files
authored
fix path is empty (#5833)
Signed-off-by: xliuqq <xlzq1992@gmail.com>
1 parent 2a5560d commit d14dcc7

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

pkg/ddc/cache/engine/cm.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ func (e *CacheEngine) generateRuntimeConfigData(runtime *datav1alpha1.CacheRunti
116116
MountPoint: m.MountPoint,
117117
ReadOnly: m.ReadOnly,
118118
Shared: m.Shared,
119-
Path: m.Path,
119+
// m.Path may be empty.
120+
Path: utils.UFSPathBuilder{}.GenUFSPathInUnifiedNamespace(m),
120121
}
121122
options, encryptOptions, err := e.generateDatasetMountOptions(&m, dataset.Spec.SharedEncryptOptions, dataset.Spec.SharedOptions)
122123
if err != nil {

test/gha-e2e/curvine/dataset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ spec:
1414
accessModes: ["ReadWriteMany"]
1515
mounts:
1616
- mountPoint: "s3://test"
17+
# path: /minio
1718
name: minio
18-
path: /minio
1919
# bin/cv mount s3://test /minio \
2020
# -c s3.endpoint_url=http://127.0.0.1:19000 \
2121
# -c s3.region_name=us-east-1 \

0 commit comments

Comments
 (0)