diff --git a/generator/crontabs.go b/generator/crontabs.go index e8f76b5..4066866 100644 --- a/generator/crontabs.go +++ b/generator/crontabs.go @@ -43,6 +43,10 @@ func buildCrontab(deployName string, deployment *helm.Deployment, s *types.Servi log.Fatalf("error: %v", err) } + if len(crons) == 0 { + return + } + // create a serviceAccount sa := helm.NewServiceAccount(deployName) // create a role