Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
Signed-off-by: MenD32 <amit@jounce.io>
  • Loading branch information
MenD32 committed Sep 4, 2024
1 parent b3ec2ab commit c53b9e6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions controllers/eventsource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,12 @@ func buildService(args *AdaptorArgs) (*corev1.Service, error) {
}

if args.EventSource.Spec.Service.Metadata != nil {
svc.ObjectMeta.SetLabels(args.EventSource.Spec.Service.Metadata.Labels)
svc.ObjectMeta.SetAnnotations(args.EventSource.Spec.Service.Metadata.Annotations)
if args.EventSource.Spec.Service.Metadata.Labels != nil {
svc.ObjectMeta.SetLabels(args.EventSource.Spec.Service.Metadata.Labels)
}
if args.EventSource.Spec.Service.Metadata.Annotations != nil {
svc.ObjectMeta.SetAnnotations()

Check failure on line 407 in controllers/eventsource/resource.go

View workflow job for this annotation

GitHub Actions / E2E Tests (kafka)

not enough arguments in call to svc.ObjectMeta.SetAnnotations

Check failure on line 407 in controllers/eventsource/resource.go

View workflow job for this annotation

GitHub Actions / Unit Tests

not enough arguments in call to svc.ObjectMeta.SetAnnotations

Check failure on line 407 in controllers/eventsource/resource.go

View workflow job for this annotation

GitHub Actions / E2E Tests (stan)

not enough arguments in call to svc.ObjectMeta.SetAnnotations

Check failure on line 407 in controllers/eventsource/resource.go

View workflow job for this annotation

GitHub Actions / E2E Tests (jetstream)

not enough arguments in call to svc.ObjectMeta.SetAnnotations

Check failure on line 407 in controllers/eventsource/resource.go

View workflow job for this annotation

GitHub Actions / lint

not enough arguments in call to svc.ObjectMeta.SetAnnotations

Check failure on line 407 in controllers/eventsource/resource.go

View workflow job for this annotation

GitHub Actions / lint

not enough arguments in call to svc.ObjectMeta.SetAnnotations

Check failure on line 407 in controllers/eventsource/resource.go

View workflow job for this annotation

GitHub Actions / lint

not enough arguments in call to svc.ObjectMeta.SetAnnotations
}
}

if err := controllerscommon.SetObjectMeta(eventSource, svc, v1alpha1.SchemaGroupVersionKind); err != nil {
Expand Down

0 comments on commit c53b9e6

Please sign in to comment.