code cleanup

This commit is contained in:
Sergey Dudoladov
2019-04-17 16:55:37 +02:00
parent a73b986b45
commit bd9d0fcd38
8 changed files with 37 additions and 44 deletions
+2 -2
View File
@@ -151,8 +151,8 @@ func getJobImage(cronJob *batchv1beta1.CronJob) string {
return cronJob.Spec.JobTemplate.Spec.Template.Spec.Containers[0].Image
}
// SameCronJob compares Specs of logical backup cron jobs
func SameCronJob(cur, new *batchv1beta1.CronJob) (match bool, reason string) {
// SameLogicalBackupJob compares Specs of logical backup cron jobs
func SameLogicalBackupJob(cur, new *batchv1beta1.CronJob) (match bool, reason string) {
if cur.Spec.Schedule != new.Spec.Schedule {
return false, fmt.Sprintf("new job's schedule %q doesn't match the current one %q",