Skip to content

Commit

Permalink
debugging kafka e2e
Browse files Browse the repository at this point in the history
Signed-off-by: MenD32 <amit@jounce.io>
  • Loading branch information
MenD32 committed Aug 24, 2024
1 parent dd9c09b commit c5566d9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 5 additions & 3 deletions controllers/eventsource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,11 @@ func buildService(args *AdaptorArgs) (*corev1.Service, error) {

if args.EventSource.Spec.Service.Metadata != nil {
annotations = args.EventSource.Spec.Service.Metadata.Annotations
labels = mergeLabels(args.EventSource.Spec.Service.Metadata.Labels, args.EventSource.Labels)
// labels = mergeLabels(args.EventSource.Spec.Service.Metadata.Labels, args.EventSource.Labels)
}

fmt.Printf("%+v %+v\n", annotations, labels)

svc := &corev1.Service{
ObjectMeta: metav1.ObjectMeta{
Name: fmt.Sprintf("%s-eventsource-svc", eventSource.Name),
Expand All @@ -405,8 +407,8 @@ func buildService(args *AdaptorArgs) (*corev1.Service, error) {
Selector: args.Labels,
},
}
svc.ObjectMeta.SetAnnotations(annotations)
svc.ObjectMeta.SetLabels(labels)
// svc.ObjectMeta.SetAnnotations(annotations)
// svc.ObjectMeta.SetLabels(labels)
if err := controllerscommon.SetObjectMeta(eventSource, svc, v1alpha1.SchemaGroupVersionKind); err != nil {
return nil, err
}
Expand Down
5 changes: 5 additions & 0 deletions examples/event-sources/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ spec:
ports:
- port: 12000
targetPort: 12000
metadata:
labels:
foo: bar
annotations:
foo: bar
webhook:
# event-source can run multiple HTTP servers. Simply define a unique port to start a new HTTP server
example:
Expand Down

0 comments on commit c5566d9

Please sign in to comment.