Return when len(crons) == 0

This commit is contained in:
2022-05-25 07:46:36 +02:00
parent 52d19a2558
commit 58e5fe05f8

View File

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