From c7090e2c4260267791c5f958e0d7dbb3593aab24 Mon Sep 17 00:00:00 2001 From: grambbledook Date: Mon, 8 Dec 2025 14:42:53 +0100 Subject: [PATCH] the rest --- pkg/registry/apps/apps.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/registry/apps/apps.go b/pkg/registry/apps/apps.go index a1ec8aafd65..679975ec209 100644 --- a/pkg/registry/apps/apps.go +++ b/pkg/registry/apps/apps.go @@ -2,6 +2,7 @@ package appregistry import ( "context" + "github.com/open-feature/go-sdk/openfeature" "github.com/grafana/grafana/pkg/registry/apps/quotas" "github.com/open-feature/go-sdk/openfeature" @@ -77,7 +78,11 @@ func ProvideAppInstallers( installers = append(installers, logsdrilldownAppInstaller) } //nolint:staticcheck - if features.IsEnabledGlobally(featuremgmt.FlagKubernetesAnnotations) { + ctx := context.Background() + s := openfeature.NewDefaultClient().String(ctx, featuremgmt.FlagBlueFlag, "red", openfeature.TransactionContext(ctx)) + println("@@@@@@", s) + if s == "blue" { + println("@@@@@@", "OH MY IS BLUE") installers = append(installers, annotationAppInstaller) } //nolint:staticcheck // not yet migrated to OpenFeature