From 87e0149dc0eae98b277e75b512b65a79d95c868d Mon Sep 17 00:00:00 2001 From: Knative Prow Robot Date: Tue, 14 May 2024 14:53:54 +0100 Subject: [PATCH] fix: pass application context to adapter setup (#518) Signed-off-by: Calum Murray Co-authored-by: Calum Murray --- cmd/receive_adapter/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) }