Skip to content

Commit 6dab2c5

Browse files
committed
controller: fix the auto backup nfs error #740
1 parent 055df30 commit 6dab2c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

controllers/backupcron_controller.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ func (r *BackupCronReconciler) updateClusterSchedule(ctx context.Context, cluste
174174
}
175175
}
176176
nfsServerAddress := ""
177-
if BackupType == "nfs" {
177+
// if has backupsecret and nfsServerAdrr, auto use nfs backup
178+
// if you want s3 backup, set backupSecret only.
179+
if BackupType != "s3" {
178180
nfsServerAddress = cluster.Spec.NFSServerAddress
179181
}
180182
log.V(1).Info("register cluster in cronjob", "key", cluster.Name+BackupType, "schedule", schedule)

0 commit comments

Comments
 (0)