From 3ec95705c1b91531b49bde1e9382c908a01af559 Mon Sep 17 00:00:00 2001 From: Knative Prow Robot Date: Mon, 13 May 2024 16:17:48 +0100 Subject: [PATCH] [release-1.14] fix: pass application context to receive adapter (#477) 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) }