@@ -292,7 +292,7 @@ func getComponents(rt *runtime.Runtime, opts *RuntimeInstallOptions) []string {
292
292
}
293
293
294
294
// 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" }
296
296
for _ , additionalComponentName := range additionalComponents {
297
297
componentFullName := fmt .Sprintf ("%s-%s" , opts .RuntimeName , additionalComponentName )
298
298
componentNames = append (componentNames , componentFullName )
@@ -524,6 +524,16 @@ func installComponents(ctx context.Context, opts *RuntimeInstallOptions, rt *run
524
524
return fmt .Errorf ("failed to create replicaset-reporter: %w" , err )
525
525
}
526
526
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
+
527
537
return nil
528
538
}
529
539
@@ -610,7 +620,7 @@ func intervalCheckIsRuntimePersisted(ctx context.Context, runtimeName string) er
610
620
for triesLeft := maxRetries ; triesLeft > 0 ; triesLeft , _ = triesLeft - 1 , <- ticker .C {
611
621
runtime , err := cfConfig .NewClient ().V2 ().Runtime ().Get (ctx , runtimeName )
612
622
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 )
614
624
}
615
625
616
626
if runtime .InstallationStatus == model .InstallationStatusCompleted {
@@ -1235,7 +1245,9 @@ func createReporter(ctx context.Context, cloneOpts *git.CloneOptions, opts *Runt
1235
1245
1236
1246
log .G (ctx ).Info ("Pushing Codefresh " , strings .Title (reporterCreateOpts .reporterName ), " mainifests" )
1237
1247
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 )
1239
1251
}
1240
1252
1241
1253
func updateProject (repofs fs.FS , rt * runtime.Runtime ) error {
0 commit comments