@@ -229,8 +229,12 @@ func updateProject(repofs fs.FS, runtimeName string) error {
229
229
if appset .Spec .Template .Labels == nil {
230
230
appset .Spec .Template .Labels = make (map [string ]string )
231
231
}
232
+ if appset .Labels == nil {
233
+ appset .Labels = make (map [string ]string )
234
+ }
232
235
233
- appset .Spec .Template .Labels [store .Get ().CFComponentKey ] = "{{ appName }}"
236
+ appset .Spec .Template .Labels [store .Get ().CFType ] = store .Get ().CFComponentType
237
+ appset .Labels [store .Get ().CFType ] = store .Get ().CFRuntimeType
234
238
return repofs .WriteYamls (projPath , project , appset )
235
239
}
236
240
@@ -356,9 +360,9 @@ func createEventSource(repofs fs.FS, path, runtimeName string) error {
356
360
AfterStart : false ,
357
361
Labels : []eventsourcev1alpha1.Selector {
358
362
{
359
- Key : store .Get ().CFComponentKey ,
360
- Operation : "! =" ,
361
- Value : "" ,
363
+ Key : store .Get ().CFType ,
364
+ Operation : "= =" ,
365
+ Value : store . Get (). CFComponentType ,
362
366
},
363
367
},
364
368
},
@@ -376,12 +380,12 @@ func createEventSource(repofs fs.FS, path, runtimeName string) error {
376
380
},
377
381
Namespace : runtimeName ,
378
382
Filter : & eventsourcev1alpha1.ResourceFilter {
379
- AfterStart : true ,
383
+ AfterStart : false ,
380
384
Labels : []eventsourcev1alpha1.Selector {
381
385
{
382
- Key : store .Get ().CFComponentKey ,
383
- Operation : "! =" ,
384
- Value : "" ,
386
+ Key : store .Get ().CFType ,
387
+ Operation : "= =" ,
388
+ Value : store . Get (). CFRuntimeType ,
385
389
},
386
390
},
387
391
},
@@ -430,7 +434,7 @@ func createSensor(repofs fs.FS, path, namespace string) error {
430
434
},
431
435
SecureHeaders : []* apicommon.SecureHeader {
432
436
{
433
- Name : "Autorization " ,
437
+ Name : "Authorization " ,
434
438
ValueFrom : & apicommon.ValueFromSource {
435
439
SecretKeyRef : & v1.SecretKeySelector {
436
440
LocalObjectReference : v1.LocalObjectReference {
@@ -471,7 +475,7 @@ func createSensor(repofs fs.FS, path, namespace string) error {
471
475
},
472
476
SecureHeaders : []* apicommon.SecureHeader {
473
477
{
474
- Name : "Autorization " ,
478
+ Name : "Authorization " ,
475
479
ValueFrom : & apicommon.ValueFromSource {
476
480
SecretKeyRef : & v1.SecretKeySelector {
477
481
LocalObjectReference : v1.LocalObjectReference {
0 commit comments