Skip to content

Commit

Permalink
fixed lint
Browse files Browse the repository at this point in the history
Signed-off-by: MenD32 <[email protected]>
  • Loading branch information
MenD32 committed Sep 4, 2024
1 parent 72d3ee8 commit 7e2be6b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions controllers/eventsource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,12 @@ func buildService(args *AdaptorArgs) (*corev1.Service, error) {
},
}

if args.EventSource.Spec.Service.Metadata.Annotations != nil {
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(args.EventSource.Spec.Service.Metadata.Annotations)
}
if args.EventSource.Spec.Service.Metadata.Labels != nil {
svc.ObjectMeta.SetLabels(args.EventSource.Spec.Service.Metadata.Labels)
}
if err := controllerscommon.SetObjectMeta(eventSource, svc, v1alpha1.SchemaGroupVersionKind); err != nil {
return nil, err
}
Expand Down

0 comments on commit 7e2be6b

Please sign in to comment.