From 1c38431e308f3c69e165586cbc7d12b4bf1a447f Mon Sep 17 00:00:00 2001 From: Knative Prow Robot Date: Tue, 14 May 2024 14:53:58 +0100 Subject: [PATCH] [release-1.13] fix: pass application context to receive adapter (#478) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: pass application context to receive adapter Signed-off-by: Calum Murray * Update cmd/receive_adapter/main.go Co-authored-by: Christoph Stäbler --------- Signed-off-by: Calum Murray Co-authored-by: Calum Murray Co-authored-by: Christoph Stäbler --- 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 8f8c8b6f4..f0ab6f550 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" 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) }