change delete logic

This commit is contained in:
Sergey Dudoladov 2019-04-17 17:19:27 +02:00
parent 4cf37c4f3e
commit e2a4876ce4
1 changed files with 1 additions and 4 deletions

View File

@ -1064,11 +1064,8 @@ func (c *Cluster) deletePatroniClusterConfigMaps() error {
func (c *Cluster) deleteLogicalBackupJob() error {
if c.logicalBackupJob == nil {
return nil
}
c.logger.Debug("removing the logical backup job")
c.logicalBackupJob = nil
return c.KubeClient.CronJobsGetter.CronJobs(c.Namespace).Delete(c.getLogicalBackupJobName(), c.deleteOptions)
}