Allow not generating maintenance jobs in Prow config
@@ -1097,11 +1097,11 @@ func main() {
prowConfigOutput := ""
testgridConfigOutput := ""
var generateProwConfig = flag.Bool("generate-prow-config", true, "Whether to generate the prow configuration file from the template")
- flag.StringVar(&prowConfigOutput, "prow-config-output", "", "The destination for the prow config output, default to be stdout")
var generateTestgridConfig = flag.Bool("generate-testgrid-config", true, "Whether to generate the testgrid config from the template file")
- flag.StringVar(&testgridConfigOutput, "testgrid-config-output", "", "The destination for the testgrid config output, default to be stdout")
-
+ var generateMaintenanceJobs = flag.Bool("generate-maintenance-jobs", true, "Whether to generate the maintenance periodic jobs (e.g. backup)")
var includeConfig = flag.Bool("include-config", true, "Whether to include general configuration (e.g., plank) in the generated config")
+ flag.StringVar(&prowConfigOutput, "prow-config-output", "", "The destination for the prow config output, default to be stdout")
+ flag.StringVar(&testgridConfigOutput, "testgrid-config-output", "", "The destination for the testgrid config output, default to be stdout")
flag.StringVar(&prowHost, "prow-host", "https://prow.knative.dev", "Prow host, including HTTP protocol")
flag.StringVar(&testGridHost, "testgrid-host", "https://testgrid.knative.dev", "TestGrid host, including HTTP protocol")
flag.StringVar(&gubernatorHost, "gubernator-host", "https://gubernator.knative.dev", "Gubernator host, including HTTP protocol")
@@ -1157,12 +1157,14 @@ func main() {
generateOtherJobConfigs("periodics", func(repo repositoryData) bool {
return !repo.Processed && repo.EnableGoCoverage
}, generateGoCoveragePeriodic)
+ if *generateMaintenanceJobs {
generateCleanupPeriodicJob()
generateFlakytoolPeriodicJob()
generateVersionBumpertoolPeriodicJob()
generateBackupPeriodicJob()
generateIssueTrackerPeriodicJobs()
generatePerfClusterUpdatePeriodicJobs()
+ }
generateOtherJobConfigs("postsubmits", func(repo repositoryData) bool {
return repo.EnableGoCoverage
}, generateGoCoveragePostsubmit)
