Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/common/utils/doris/storage_conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func GetNameOfEachPath(paths []string) []string {
}
res := make([]string, len(paths))
for k := range paths {
res[k] = pathName[paths[k]]
res[k] = strings.ReplaceAll(pathName[paths[k]], "_", "-")
}
return res
}
4 changes: 2 additions & 2 deletions pkg/common/utils/resource/persistent_volume_claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ func GenerateEveryoneMountPathPersistentVolume(spec *dorisv1.BaseSpec, config ma
tmp.MountPath = dataPaths[0]
pvs = append(pvs, tmp)
} else {
pathName := doris.GetNameOfEachPath(dataPaths)
pathNames := doris.GetNameOfEachPath(dataPaths)
for i := range dataPaths {
tmp := *template.DeepCopy()
tmp.Name = tmp.Name + "-" + pathName[i]
tmp.Name = tmp.Name + "-" + pathNames[i]
tmp.MountPath = dataPaths[i]
pvs = append(pvs, tmp)
}
Expand Down