From ae6e3a0dfeff995996e2f574551969fe7a884bb2 Mon Sep 17 00:00:00 2001 From: amecea Date: Mon, 31 Aug 2020 19:32:12 +0300 Subject: [PATCH] Limit cleanup job name to 63 chars, fixes #577 --- pkg/internal/mysqlbackup/mysqlbackup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/mysqlbackup/mysqlbackup.go b/pkg/internal/mysqlbackup/mysqlbackup.go index 989daccbb..6b84a370a 100644 --- a/pkg/internal/mysqlbackup/mysqlbackup.go +++ b/pkg/internal/mysqlbackup/mysqlbackup.go @@ -83,7 +83,7 @@ func (b *MysqlBackup) GetNameForJob() string { // GetNameForDeletionJob returns the name for the hard deletion job. func (b *MysqlBackup) GetNameForDeletionJob() string { - return fmt.Sprintf("%s-backup-cleanup", b.Name) + return fmt.Sprintf("%s-cleanup", b.Name[:55]) } // String returns the backup name and namespace