From 56fe67ca1963e8badca65bf33218f577fb294ae1 Mon Sep 17 00:00:00 2001 From: mohanli-ml Date: Wed, 22 Nov 2023 19:01:18 +0000 Subject: [PATCH] feat(bigtable): allow non-default service account in DirectPath --- bigtable/bigtable.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bigtable/bigtable.go b/bigtable/bigtable.go index 0cd7a7084f08..c8c23920cbb8 100644 --- a/bigtable/bigtable.go +++ b/bigtable/bigtable.go @@ -88,6 +88,8 @@ func NewClientWithConfig(ctx context.Context, project, instance string, config C // Attempts direct access to spanner service over gRPC to improve throughput, // whether the attempt is allowed is totally controlled by service owner. o = append(o, internaloption.EnableDirectPath(true)) + // Allow non-default service account in DirectPath. + o = append(o, internaloption.AllowNonDefaultServiceAccount(true)) o = append(o, opts...) connPool, err := gtransport.DialPool(ctx, o...) if err != nil {