From 3221f493f9caa389b9c82823a10c94b82f1a7a07 Mon Sep 17 00:00:00 2001 From: Todd Treece <360020+toddtreece@users.noreply.github.com> Date: Tue, 24 Sep 2024 06:39:11 -0400 Subject: [PATCH] K8s: Prevent registration of frontend datasources (#93635) --- pkg/registry/apis/datasource/register.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/registry/apis/datasource/register.go b/pkg/registry/apis/datasource/register.go index 638bb52ac7d..e45c403a4d8 100644 --- a/pkg/registry/apis/datasource/register.go +++ b/pkg/registry/apis/datasource/register.go @@ -79,6 +79,10 @@ func RegisterAPIService( continue // skip this one } + if !ds.JSONData.Backend { + continue // skip frontend only plugins + } + builder, err = NewDataSourceAPIBuilder(ds.JSONData, pluginClient, datasources.GetDatasourceProvider(ds.JSONData),