Apps: Update grafana-app-sdk to v0.46.0 (#112021)

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
Austin Pond
2025-10-04 09:33:10 +00:00
committed by GitHub
co-authored by Ryan McKinley
parent dc528cef0d
commit 99312a7582
84 changed files with 551 additions and 178 deletions
+3 -2
View File
@@ -28,8 +28,9 @@ var (
)
var appManifestData = app.ManifestData{
AppName: "plugins",
Group: "plugins.grafana.app",
AppName: "plugins",
Group: "plugins.grafana.app",
PreferredVersion: "v0alpha1",
Versions: []app.ManifestVersion{
{
Name: "v0alpha1",
+5 -2
View File
@@ -4,6 +4,7 @@ import (
"context"
"github.com/grafana/grafana-app-sdk/app"
"github.com/grafana/grafana-app-sdk/operator"
"github.com/grafana/grafana-app-sdk/resource"
"github.com/grafana/grafana-app-sdk/simple"
"k8s.io/apimachinery/pkg/runtime/schema"
@@ -26,8 +27,10 @@ func New(cfg app.Config) (app.App, error) {
Name: "plugins",
KubeConfig: cfg.KubeConfig,
InformerConfig: simple.AppInformerConfig{
ErrorHandler: func(ctx context.Context, err error) {
klog.ErrorS(err, "Informer processing error")
InformerOptions: operator.InformerOptions{
ErrorHandler: func(ctx context.Context, err error) {
klog.ErrorS(err, "Informer processing error")
},
},
},
ManagedKinds: managedKinds,