Feat cronjob #23

Merged
metal3d merged 28 commits from feat-cronjob into master 2022-06-10 14:15:18 +00:00
Showing only changes of commit 58e5fe05f8 - Show all commits

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