diffs

package
v0.0.0-...-bd57d2e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
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) (config.DataByFilename, map[string]sets.Set[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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL