Skip to content

Commit

Permalink
[release-1.14] fix: pass application context to receive adapter (#477)
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 13, 2024
1 parent 903c410 commit 3ec9570
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 3ec9570

Please sign in to comment.