This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 629c30279e864afd64f25f3b2689274412da8c7a Author: Antonin Stefanutti <[email protected]> AuthorDate: Thu Mar 4 19:09:43 2021 +0100 fix: Events sink is already started by controller runtime --- pkg/cmd/operator/operator.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/cmd/operator/operator.go b/pkg/cmd/operator/operator.go index 1938d28..b7b8698 100644 --- a/pkg/cmd/operator/operator.go +++ b/pkg/cmd/operator/operator.go @@ -28,7 +28,6 @@ import ( "time" corev1 "k8s.io/api/core/v1" - typedcorev1 "k8s.io/client-go/kubernetes/typed/core/v1" "k8s.io/client-go/tools/record" ctrl "sigs.k8s.io/controller-runtime" @@ -126,8 +125,6 @@ func Run(healthPort, monitoringPort int32) { } else if !ok { log.Info("Event broadcasting to Kubernetes is disabled because of missing permissions to create events") } - } else { - broadcaster.StartRecordingToSink(&typedcorev1.EventSinkImpl{Interface: c.CoreV1().Events(namespace)}) } mgr, err := ctrl.NewManager(cfg, ctrl.Options{
