GoogleCloudPlatform / traffic-director-grpc-bootstrap

Apache License 2.0
20 stars 18 forks source link

Add support to include c2p authority #34

Closed arvindbr8 closed 1 year ago

arvindbr8 commented 2 years ago

As part of xds federation changes, we need to add support to the bootstrap generator to add c2p authority to the config. This change addresses that.

what's happenin?

  1. add C2P TD authority option using a include-directpath-authority-experimental flag
  2. add additional logic to the bootstrap generator to query http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ipv6s and set the TRAFFICDIRECTOR_DIRECTPATH_C2P_IPV6_CAPABLE to true or false, in node metadata

Part of #32

arvindbr8 commented 2 years ago

@easwars please take a look

arvindbr8 commented 2 years ago

I'm also updating this to include changes to support adding node metadata indicating IPv6 capabilities for DirectPath b/258291928

easwars commented 2 years ago

@ejona86 : I think the changes look good. I'm assigning you for a second set of eyes. Thank you.