This commit is contained in:
grambbledook
2026-01-12 16:30:41 +01:00
parent 77d0a60ef1
commit a23ce17a81
+6 -1
View File
@@ -2,6 +2,7 @@ package appregistry
import ( import (
"context" "context"
"github.com/open-feature/go-sdk/openfeature"
"github.com/grafana/grafana/pkg/registry/apps/quotas" "github.com/grafana/grafana/pkg/registry/apps/quotas"
"github.com/open-feature/go-sdk/openfeature" "github.com/open-feature/go-sdk/openfeature"
@@ -76,7 +77,11 @@ func ProvideAppInstallers(
installers = append(installers, logsdrilldownAppInstaller) installers = append(installers, logsdrilldownAppInstaller)
} }
//nolint:staticcheck //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) installers = append(installers, annotationAppInstaller)
} }
//nolint:staticcheck // not yet migrated to OpenFeature //nolint:staticcheck // not yet migrated to OpenFeature