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 f64ec5c commit 4cf1bfc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions controllers/eventsource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,14 +399,14 @@ func buildService(args *AdaptorArgs) (*corev1.Service, error) {
},
}

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

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

0 comments on commit 4cf1bfc

Please sign in to comment.