Skip to content

Commit

Permalink
fix DCO
Browse files Browse the repository at this point in the history
Signed-off-by: zwwhdls <[email protected]>
  • Loading branch information
zwwhdls committed Mar 18, 2022
1 parent 4a5b3ea commit 6b05bc1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions charts/fluid-dataloader/juicefs/templates/dataloader.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ metadata:
labels:
release: {{ .Release.Name }}
role: dataload-job
app: juicefs
targetDataset: {{ required "targetDataset should be set" .Values.dataloader.targetDataset }}
spec:
backoffLimit: {{ .Values.dataloader.backoffLimit | default "3" }}
Expand Down
2 changes: 1 addition & 1 deletion charts/fluid-dataloader/juicefs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ dataloader:

podNames:
- ""
namespace: ""
namespace: ""
12 changes: 5 additions & 7 deletions pkg/ddc/juicefs/data_load.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,8 @@ func (e *JuiceFSEngine) generateDataLoadValueFile(r cruntime.ReconcileRequestCon
if err != nil {
return
}
if cacheinfo != nil {
for key, value := range cacheinfo {
options[key] = value
}
for key, value := range cacheinfo {
options[key] = value
}

dataloadInfo.Options = options
Expand Down Expand Up @@ -193,9 +191,9 @@ func (e *JuiceFSEngine) CheckExistenceOfPath(targetDataload datav1alpha1.DataLoa
if err != nil {
return
}
mountPath := ""
if cacheinfo != nil {
mountPath = cacheinfo[MOUNTPATH]
mountPath := cacheinfo[MOUNTPATH]
if mountPath == "" {
return true, fmt.Errorf("fail to find mountpath in dataset %s %s", targetDataload.Spec.Dataset.Name, targetDataload.Spec.Dataset.Namespace)
}

// get fuse pod
Expand Down

0 comments on commit 6b05bc1

Please sign in to comment.