diff --git a/cmd/receive_adapter/main.go b/cmd/receive_adapter/main.go index d8038d36d..593ebd612 100644 --- a/cmd/receive_adapter/main.go +++ b/cmd/receive_adapter/main.go @@ -18,10 +18,14 @@ package main import ( "knative.dev/eventing/pkg/adapter/v2" + "knative.dev/pkg/signals" githubadapter "knative.dev/eventing-github/pkg/adapter" ) func main() { - adapter.Main("githubsource", githubadapter.NewEnvConfig, githubadapter.NewAdapter) + ctx := signals.NewContext() + ctx = adapter.WithInjectorEnabled(ctx) + + adapter.MainWithContext(ctx, "githubsource", githubadapter.NewEnvConfig, githubadapter.NewAdapter) }