Skip to content

Commit e613ff5

Browse files
Md. Emruz Hossaintamalsaha
authored andcommitted
Fixes RBAC issue in test (#449)
1 parent 56a3a74 commit e613ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func NewCmdBackup() *cobra.Command {
8787
log.Fatal(err)
8888
}
8989

90-
if replica > 1 {
90+
if replica > 1 || !util.HasOldReplicaAnnotation(kubeClient, opt.Namespace, opt.Workload) {
9191
log.Infof("Skipping backup. Reason: Backup type offline and replica > 1")
9292
} else {
9393
log.Infoln("Running backup once")

0 commit comments

Comments
 (0)