Skip to content

Commit

Permalink
Limit cleanup job name to 63 chars, fixes #577
Browse files Browse the repository at this point in the history
  • Loading branch information
AMecea committed Aug 31, 2020
1 parent e7bb216 commit ae6e3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/internal/mysqlbackup/mysqlbackup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae6e3a0

Please sign in to comment.