Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: yangyuliufeng <[email protected]>
  • Loading branch information
yangyuliufeng authored Aug 10, 2021
1 parent 3ae86b8 commit 48de610
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controllers/v1alpha1/databackup/implement.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ func (r *DataBackupReconcilerImplement) reconcileExecutingDataBackup(ctx reconci
}

// index of runtimeType in value filename is 2
runtimeType := strings.Split(valueFileName, "-")[2]
valueFileNameSplit := strings.Split(valueFileName, "-")
runtimeType := valueFileNameSplit[len(valueFileNameSplit)-3]

chartName := utils.GetChartsDirectory() + "/" + cdatabackup.DatabackupChart + "/" + runtimeType
err = helm.InstallRelease(releaseName, ctx.Namespace, valueFileName, chartName)
Expand Down

0 comments on commit 48de610

Please sign in to comment.