Repository navigation
feat(option/internaloption): add EnableDirectPathXdsOverInterconnect - #3742
Conversation
Plumbs internaloption.EnableDirectPathXdsOverInterconnect() through internal.DialSettings into grpctransport.InternalOptions.EnableDirectPathXdsOverInterconnect. [Generated-by: AI]
…thXdsOverInterconnect Updates cloud.google.com/go/auth to include grpctransport.InternalOptions.EnableDirectPathXdsOverInterconnect and adds unit test coverage in transport/grpc/dial_test.go. [Generated-by: AI]
…terconnect on UnsafeResolver
…ver-interconnect # Conflicts: # go.mod # go.sum
shollyman
left a comment
There was a problem hiding this comment.
Reasonable while you work on this feature, though I wonder if its indicating we would be better off with an option that more completely controls transport details.
For example, if we're moving towards more "flavors" of directpath, EnableDirectPathMode(mode).
|
Thanks for the review and approval, @shollyman! That makes a lot of sense—if we introduce additional DirectPath flavors or more fine-grained transport profiles in the future, consolidating them into something like EnableDirectPathMode(mode) or broader transport settings would definitely be cleaner than adding one-off booleans. Since this is in internaloption (so no public API commitment) and auth/grpctransport (#20559) is already merged expecting this boolean, I’d like to keep it as-is for now to unblock the GCS gRPC changes in googleapis/google-cloud-go#20561. We can follow up with a transport-level refactor once the broader DirectPath mode requirements take shape. cc: @cpriti-os |
Blocked on googleapis/google-cloud-go#20559 being merged and
cloud.google.com/go/authbeing released (CI will fail untilcloud.google.com/go/authis bumped ingo.mod).Adds
internaloption.EnableDirectPathXdsOverInterconnect()and plumbsDialSettings.EnableDirectPathXdsOverInterconnectintogrpctransport.InternalOptions.EnableDirectPathXdsOverInterconnectintransport/grpc/dial.go.