@@ -168,6 +168,14 @@ func RunRuntimeCreate(ctx context.Context, opts *RuntimeCreateOptions) error {
168
168
return fmt .Errorf ("failed to create components-reporter: %w" , err )
169
169
}
170
170
171
+ if opts .gsCreateOpts .Owner == "" {
172
+ opts .gsCreateOpts .Owner = opts .insCreateOpts .Owner
173
+ }
174
+
175
+ if opts .gsCreateOpts .Repo == "" {
176
+ opts .gsCreateOpts .Repo = opts .insCreateOpts .Repo + "-git-source"
177
+ }
178
+
171
179
if opts .gsCreateOpts .Token == "" {
172
180
opts .gsCreateOpts .Token = opts .insCreateOpts .Token
173
181
}
@@ -538,6 +546,13 @@ func createGitSource(ctx context.Context, insCloneOpts *git.CloneOptions, gsClon
538
546
Namespace : runtimeName ,
539
547
Selectors : selectors ,
540
548
},
549
+ "rollout" : {
550
+ Group : "argoproj.io" ,
551
+ Version : "v1alpha1" ,
552
+ Resource : "rollouts" ,
553
+ Namespace : runtimeName ,
554
+ Selectors : selectors ,
555
+ },
541
556
},
542
557
})
543
558
if err := insFs .WriteYamls (insFs .Join (resPath , "event-source.yaml" ), eventSource ); err != nil {
@@ -551,14 +566,15 @@ func createGitSource(ctx context.Context, insCloneOpts *git.CloneOptions, gsClon
551
566
EventBusName : store .Get ().EventBusName ,
552
567
TriggerURL : cfConfig .GetCurrentContext ().URL + store .Get ().EventReportingEndpoint ,
553
568
Triggers : []string {
554
- "clusterWorkflowTemplate" ,
569
+ // "clusterWorkflowTemplate",
555
570
"workflowTemplate" ,
556
571
"workflow" ,
557
572
"appProject" ,
558
573
"application" ,
559
574
"eventBus" ,
560
575
"eventSource" ,
561
576
"sensor" ,
577
+ "rollout" ,
562
578
},
563
579
})
564
580
if err = insFs .WriteYamls (insFs .Join (resPath , "sensor.yaml" ), sensor ); err != nil {
0 commit comments