prow/statusreconciler/controller.go
func NewController(continueOnError bool, addedPresubmitBlacklist sets.String, prowJobClient prowv1.ProwJobInterface, githubClient *github.Client, configAgent *config.Agent, pluginAgent *plugins.ConfigAgent) *Controller {
	return &Controller{
		continueOnError:         continueOnError,
		addedPresubmitBlacklist: addedPresubmitBlacklist,
		prowJobTriggerer: &kubeProwJobTriggerer{
			prowJobClient: prowJobClient,
			githubClient:  githubClient,
			configAgent:   configAgent,
		},
		githubClient: githubClient,
		statusMigrator: &gitHubMigrator{
			githubClient:    githubClient,
			continueOnError: continueOnError,
		},
		trustedChecker: &githubTrustedChecker{
			githubClient: githubClient,
			pluginAgent:  pluginAgent,
		},
	}
}
func NewController(continueOnError bool, addedPresubmitBlacklist sets.String, prowJobClient prowv1.ProwJobInterface, githubClient *github.Client, configAgent *config.Agent, pluginAgent *plugins.ConfigAgent) *Controller {
	return &Controller{
		continueOnError:         continueOnError,
		addedPresubmitBlacklist: addedPresubmitBlacklist,
		prowJobTriggerer: &kubeProwJobTriggerer{
			prowJobClient: prowJobClient,
			githubClient:  githubClient,
			configAgent:   configAgent,
		},
		githubClient: githubClient,
		statusMigrator: &gitHubMigrator{
			githubClient:    githubClient,
			continueOnError: continueOnError,
		},
		trustedChecker: &githubTrustedChecker{
			githubClient: githubClient,
			pluginAgent:  pluginAgent,
		},
	}
}
func NewController ( continueOnError bool , addedPresubmitBlacklist sets . String , prowJobClient prowv1 . ProwJobInterface , githubClient * github . Client , configAgent * config . Agent , pluginAgent * plugins . ConfigAgent ) * Controller { return & Controller { continueOnError : continueOnError , addedPresubmitBlacklist : addedPresubmitBlacklist , prowJobTriggerer : & kubeProwJobTriggerer { prowJobClient : prowJobClient , githubClient : githubClient , configAgent : configAgent , } , githubClient : githubClient , statusMigrator : & gitHubMigrator { githubClient : githubClient , continueOnError : continueOnError , } , trustedChecker : & githubTrustedChecker { githubClient : githubClient , pluginAgent : pluginAgent , } , } }
// NewController constructs a new controller to reconcile stauses on config change
NewController constructs a new controller to reconcile stauses on config change