diff --git a/controllers/eventsource/resource.go b/controllers/eventsource/resource.go index 3a92d4ce22..e1714b1722 100644 --- a/controllers/eventsource/resource.go +++ b/controllers/eventsource/resource.go @@ -399,14 +399,14 @@ func buildService(args *AdaptorArgs) (*corev1.Service, error) { }, } - if args.EventSource.Spec.Service.Metadata != nil { - if args.EventSource.Spec.Service.Metadata.Labels != nil { + // if args.EventSource.Spec.Service.Metadata != nil { + // 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 { + // } + // if args.EventSource.Spec.Service.Metadata.Annotations != nil { svc.ObjectMeta.SetAnnotations(args.EventSource.Spec.Service.Metadata.Annotations) - } - } + // } + // } if err := controllerscommon.SetObjectMeta(eventSource, svc, v1alpha1.SchemaGroupVersionKind); err != nil { return nil, err