From 67e83e2ae1534f8bcb9860b4b48b3ac31ec69896 Mon Sep 17 00:00:00 2001 From: Giuseppe Guerra Date: Tue, 9 Jan 2024 10:28:11 +0100 Subject: [PATCH] fix docstrings for IsEnabled and IsEnabledGlobally --- pkg/services/featuremgmt/models.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/services/featuremgmt/models.go b/pkg/services/featuremgmt/models.go index 7c950f1e820..ff937ddbc0b 100644 --- a/pkg/services/featuremgmt/models.go +++ b/pkg/services/featuremgmt/models.go @@ -8,11 +8,11 @@ import ( ) type FeatureToggles interface { - // Check if a feature is enabled for a given context. + // IsEnabled checks if a feature is enabled for a given context. // The settings may be per user, tenant, or globally set in the cloud IsEnabled(ctx context.Context, flag string) bool - // Check if a flag is configured globally. For now, this is the same + // IsEnabledGlobally checks if a flag is configured globally. For now, this is the same // as the function above, however it will move to only checking flags that // are configured by the operator and shared across all tenants. // Use of global feature flags should be limited and careful as they require