Skip to content

Commit

Permalink
[release-1.13] fix: pass application context to receive adapter (#478)
Browse files Browse the repository at this point in the history
* fix: pass application context to receive adapter

Signed-off-by: Calum Murray <[email protected]>

* Update cmd/receive_adapter/main.go

Co-authored-by: Christoph Stäbler <[email protected]>

---------

Signed-off-by: Calum Murray <[email protected]>
Co-authored-by: Calum Murray <[email protected]>
Co-authored-by: Christoph Stäbler <[email protected]>
  • Loading branch information
3 people authored May 14, 2024
1 parent 475290d commit 1c38431
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/receive_adapter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ package main

import (
"knative.dev/eventing/pkg/adapter/v2"
"knative.dev/pkg/signals"

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

func main() {
adapter.Main("cephsource", cephadapter.NewEnvConfig, cephadapter.NewAdapter)
ctx := signals.NewContext()
ctx = adapter.WithInjectorEnabled(ctx)

adapter.MainWithContext(ctx, "cephsource", cephadapter.NewEnvConfig, cephadapter.NewAdapter)
}

0 comments on commit 1c38431

Please sign in to comment.