use FlagAppPlatformGrpcClientAuth to enable new behavior, instead of legacy

This commit is contained in:
Claudiu Dragalina-Paraipan 2024-10-14 19:03:41 +03:00
parent ffdc301718
commit a45998c8d3

View File

@ -94,7 +94,7 @@ func ProvideUnifiedStorageClient(
}
func newResourceClient(ctx context.Context, conn *grpc.ClientConn, cfg *setting.Cfg, features featuremgmt.FeatureToggles) (resource.ResourceClient, error) {
if features.IsEnabled(ctx, featuremgmt.FlagAppPlatformGrpcClientAuth) {
if !features.IsEnabled(ctx, featuremgmt.FlagAppPlatformGrpcClientAuth) {
return resource.NewLegacyResourceClient(conn), nil
}