Documentation ¶
Index ¶
- Constants
- func GetChangedCiopConfigs(masterConfig, prConfig config.DataByFilename, logger *logrus.Entry) (configs config.DataByFilename, affectedJobs map[string]sets.Set[string], ...)
- func GetChangedPeriodics(prowMasterConfig, prowPRConfig *prowconfig.Config, logger *logrus.Entry) config.Periodics
- func GetChangedPresubmits(prowMasterConfig, prowPRConfig *prowconfig.Config, logger *logrus.Entry) config.Presubmits
- func GetJobsForCiopConfigs(prowConfig *prowconfig.Config, ciopConfigs config.DataByFilename, ...) (config.Presubmits, config.Periodics)
- func GetPresubmitsForClusterProfiles(prowConfig *prowconfig.Config, profiles sets.Set[string], logger *logrus.Entry) config.Presubmits
- type PostsubmitInContext
Constants ¶
const ( LogRepo = "repo" LogJobName = "job-name" LogReasons = "reasons" ChosenJob = "Job has been chosen for rehearsal" )
Variables ¶
This section is empty.
Functions ¶
func GetChangedCiopConfigs ¶
func GetChangedCiopConfigs(masterConfig, prConfig config.DataByFilename, logger *logrus.Entry) (configs config.DataByFilename, affectedJobs map[string]sets.Set[string], restrictNetworkAccessFalseJobs []string)
GetChangedCiopConfigs identifies CI Operator configurations that are new or have changed and determines for each which jobs are impacted if job-specific changes were made
func GetChangedPeriodics ¶
func GetChangedPeriodics(prowMasterConfig, prowPRConfig *prowconfig.Config, logger *logrus.Entry) config.Periodics
GetChangedPeriodics compares the periodic jobs from two prow configs and returns a list the changed periodics.
func GetChangedPresubmits ¶
func GetChangedPresubmits(prowMasterConfig, prowPRConfig *prowconfig.Config, logger *logrus.Entry) config.Presubmits
GetChangedPresubmits returns a mapping of repo to presubmits to execute.
func GetJobsForCiopConfigs ¶
func GetJobsForCiopConfigs(prowConfig *prowconfig.Config, ciopConfigs config.DataByFilename, affectedJobs map[string]sets.Set[string], logger *logrus.Entry) (config.Presubmits, config.Periodics)
func GetPresubmitsForClusterProfiles ¶
func GetPresubmitsForClusterProfiles(prowConfig *prowconfig.Config, profiles sets.Set[string], logger *logrus.Entry) config.Presubmits
GetPresubmitsForClusterProfiles returns a filtered list of jobs from the Prow configuration, with only presubmits that use certain cluster profiles.
Types ¶
type PostsubmitInContext ¶
type PostsubmitInContext struct { Metadata cioperatorapi.Metadata Job prowconfig.Postsubmit }
PostsubmitInContext is a postsubmit with the org/repo#branch for which it will trigger
func GetImagesPostsubmitsForCiopConfigs ¶
func GetImagesPostsubmitsForCiopConfigs(prowConfig *prowconfig.Config, ciopConfigs config.DataByFilename) []PostsubmitInContext
GetImagesPostsubmitsForCiopConfigs determines the [images] postsubmit jobs affected by the changed ci-operator configurations