Skip to content

Commit 3fe1035

Browse files
committed
Add notation to SetupFuseCleanPolicy in pkg/ddc/base/runtime.go
Signed-off-by: Pluosen <231220178@smail.nju.edu.cn>
1 parent 8cda1f9 commit 3fe1035

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/ddc/base/runtime.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ func (info *RuntimeInfo) GetFuseNodeSelector() (nodeSelector map[string]string)
335335
return
336336
}
337337

338+
// SetupFuseCleanPolicy sets the clean policy for the fuse runtime.
339+
// If the provided policy is NoneCleanPolicy, it defaults to OnRuntimeDeletedCleanPolicy.
340+
// Otherwise, it assigns the given policy directly to the fuse runtime.
338341
func (info *RuntimeInfo) SetupFuseCleanPolicy(policy datav1alpha1.FuseCleanPolicy) {
339342
if policy == datav1alpha1.NoneCleanPolicy {
340343
// Default to set the fuse clean policy to OnRuntimeDeleted

0 commit comments

Comments
 (0)