@@ -292,7 +292,7 @@ func getComponents(rt *runtime.Runtime, opts *RuntimeInstallOptions) []string {
292292 }
293293
294294 // should find a more dynamic way to get these additional components
295- additionalComponents := []string {"events-reporter" , "workflow-reporter" , "replicaset-reporter" }
295+ additionalComponents := []string {"events-reporter" , "workflow-reporter" , "replicaset-reporter" , "rollout-reporter" }
296296 for _ , additionalComponentName := range additionalComponents {
297297 componentFullName := fmt .Sprintf ("%s-%s" , opts .RuntimeName , additionalComponentName )
298298 componentNames = append (componentNames , componentFullName )
@@ -524,6 +524,16 @@ func installComponents(ctx context.Context, opts *RuntimeInstallOptions, rt *run
524524 return fmt .Errorf ("failed to create replicaset-reporter: %w" , err )
525525 }
526526
527+ if err = createReporter (ctx , opts .InsCloneOpts , opts , reporterCreateOptions {
528+ reporterName : store .Get ().RolloutReporterName ,
529+ resourceName : store .Get ().RolloutResourceName ,
530+ group : "argoproj.io" ,
531+ version : "v1alpha1" ,
532+ saName : store .Get ().RolloutReporterServiceAccount ,
533+ }); err != nil {
534+ return fmt .Errorf ("failed to create rollout-reporter: %w" , err )
535+ }
536+
527537 return nil
528538}
529539
@@ -610,7 +620,7 @@ func intervalCheckIsRuntimePersisted(ctx context.Context, runtimeName string) er
610620 for triesLeft := maxRetries ; triesLeft > 0 ; triesLeft , _ = triesLeft - 1 , <- ticker .C {
611621 runtime , err := cfConfig .NewClient ().V2 ().Runtime ().Get (ctx , runtimeName )
612622 if err != nil {
613- return fmt . Errorf ( "failed to complete the runtime installation . Error: %w" , err )
623+ log . G ( ctx ). Warn ( "retrying the call to graphql API . Error: %w" , err )
614624 }
615625
616626 if runtime .InstallationStatus == model .InstallationStatusCompleted {
@@ -1235,7 +1245,9 @@ func createReporter(ctx context.Context, cloneOpts *git.CloneOptions, opts *Runt
12351245
12361246 log .G (ctx ).Info ("Pushing Codefresh " , strings .Title (reporterCreateOpts .reporterName ), " mainifests" )
12371247
1238- return apu .PushWithMessage (ctx , r , "Created Codefresh Workflow Reporter" )
1248+ pushMessage := "Created Codefresh" + strings .Title (reporterCreateOpts .reporterName ) + "Reporter"
1249+
1250+ return apu .PushWithMessage (ctx , r , pushMessage )
12391251}
12401252
12411253func updateProject (repofs fs.FS , rt * runtime.Runtime ) error {
0 commit comments