Skip to content

Commit

Permalink
fix: Added experiment run operator for NewChaosExperimentService (#4184)
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Kumar Das <[email protected]>
  • Loading branch information
amityt authored Sep 25, 2023
1 parent ed9728a commit bd59209
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chaoscenter/graphql/server/graph/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func NewConfig(mongodbOperator mongodb.MongoOperator) generated.Config {
//service
chaosHubService := chaoshub.NewService(chaosHubOperator)
chaosInfrastructureService := chaos_infrastructure.NewChaosInfrastructureService(chaosInfraOperator, EnvironmentOperator)
chaosExperimentService := chaos_experiment2.NewChaosExperimentService(chaosExperimentOperator, chaosInfraOperator)
chaosExperimentService := chaos_experiment2.NewChaosExperimentService(chaosExperimentOperator, chaosInfraOperator, chaosExperimentRunOperator)
chaosExperimentRunService := chaos_experiment_run2.NewChaosExperimentRunService(chaosExperimentOperator, chaosInfraOperator, chaosExperimentRunOperator)
gitOpsService := gitops3.NewGitOpsService(gitopsOperator, chaosExperimentService, *chaosExperimentOperator)
imageRegistryService := image_registry.NewImageRegistryService(imageRegistryOperator)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ type chaosExperimentService struct {
}

// NewChaosExperimentService returns a new instance of the chaos workflow service
func NewChaosExperimentService(chaosWorkflowOperator *dbChaosExperiment.Operator, clusterOperator *dbChaosInfra.Operator) Service {
func NewChaosExperimentService(chaosWorkflowOperator *dbChaosExperiment.Operator, clusterOperator *dbChaosInfra.Operator, chaosExperimentRunOperator *dbChaosExperimentRun.Operator) Service {
return &chaosExperimentService{
chaosExperimentOperator: chaosWorkflowOperator,
chaosInfrastructureOperator: clusterOperator,
chaosExperimentRunOperator: chaosExperimentRunOperator,
}
}

Expand Down

0 comments on commit bd59209

Please sign in to comment.