Skip to content

Commit

Permalink
feat: use exec in juicefs pod to avoid ignore signal
Browse files Browse the repository at this point in the history
Signed-off-by: zwwhdls <[email protected]>
  • Loading branch information
zwwhdls committed Jul 25, 2024
1 parent 81699c0 commit 682b0f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/ddc/juicefs/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ func (j *JuiceFSEngine) genWorkerMount(value *JuiceFS, workerOptionMap map[strin
workerOptionMap["metrics"] = fmt.Sprintf("0.0.0.0:%d", metricsPort)
}
mountArgsWorker = []string{
"exec",
common.JuiceFSCeMountPath,
value.Source,
security.EscapeBashStr(value.Worker.MountPath),
Expand All @@ -226,6 +227,7 @@ func (j *JuiceFSEngine) genWorkerMount(value *JuiceFS, workerOptionMap map[strin
delete(workerOptionMap, "no-sharing")

mountArgsWorker = []string{
"exec",
common.JuiceFSMountPath,
value.Source,
security.EscapeBashStr(value.Worker.MountPath),
Expand Down
1 change: 1 addition & 0 deletions pkg/ddc/juicefs/transform_fuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ func (j *JuiceFSEngine) genFuseMount(value *JuiceFS, optionMap map[string]string
setDefaultOptions(optionMap, "no-sharing", "")

mountArgs = []string{
"exec",
common.JuiceFSMountPath,
value.Source,
security.EscapeBashStr(value.Fuse.MountPath),
Expand Down

0 comments on commit 682b0f8

Please sign in to comment.