Skip to content

Commit 3ec9570

Browse files
knative-prow-robotCali0707creydr
authored
[release-1.14] fix: pass application context to receive adapter (#477)
* fix: pass application context to receive adapter Signed-off-by: Calum Murray <cmurray@redhat.com> * Update cmd/receive_adapter/main.go Co-authored-by: Christoph Stäbler <cstabler@redhat.com> --------- Signed-off-by: Calum Murray <cmurray@redhat.com> Co-authored-by: Calum Murray <cmurray@redhat.com> Co-authored-by: Christoph Stäbler <cstabler@redhat.com>
1 parent 903c410 commit 3ec9570

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

cmd/receive_adapter/main.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@ package main
1818

1919
import (
2020
"knative.dev/eventing/pkg/adapter/v2"
21+
"knative.dev/pkg/signals"
2122

2223
cephadapter "knative.dev/eventing-ceph/pkg/adapter"
2324
)
2425

2526
func main() {
26-
adapter.Main("cephsource", cephadapter.NewEnvConfig, cephadapter.NewAdapter)
27+
ctx := signals.NewContext()
28+
ctx = adapter.WithInjectorEnabled(ctx)
29+
30+
adapter.MainWithContext(ctx, "cephsource", cephadapter.NewEnvConfig, cephadapter.NewAdapter)
2731
}

0 commit comments

Comments
 (0)