Skip to content

Commit

Permalink
Fixes RBAC issue in test (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
Md. Emruz Hossain authored and tamalsaha committed Apr 25, 2018
1 parent 56a3a74 commit e613ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func NewCmdBackup() *cobra.Command {
log.Fatal(err)
}

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

0 comments on commit e613ff5

Please sign in to comment.