googleapis: Enable ignore_resource_deletion in bootstrap

This commit is contained in:
Eric Anderson 2023-05-02 09:21:21 -07:00
parent 95207d2ac2
commit 545e982afd
2 changed files with 3 additions and 3 deletions

View File

@ -209,7 +209,7 @@ final class GoogleCloudToProdNameResolver extends NameResolver {
serverBuilder.put("server_uri", serverUri);
serverBuilder.put("channel_creds",
ImmutableList.of(ImmutableMap.of("type", "google_default")));
serverBuilder.put("server_features", ImmutableList.of("xds_v3"));
serverBuilder.put("server_features", ImmutableList.of("xds_v3", "ignore_resource_deletion"));
ImmutableMap.Builder<String, Object> authoritiesBuilder = ImmutableMap.builder();
authoritiesBuilder.put(
C2P_AUTHORITY,

View File

@ -187,7 +187,7 @@ public class GoogleCloudToProdNameResolverTest {
assertThat(server).containsExactly(
"server_uri", "directpath-pa.googleapis.com",
"channel_creds", ImmutableList.of(ImmutableMap.of("type", "google_default")),
"server_features", ImmutableList.of("xds_v3"));
"server_features", ImmutableList.of("xds_v3", "ignore_resource_deletion"));
Map<String, ?> authorities = (Map<String, ?>) bootstrap.get("authorities");
assertThat(authorities).containsExactly(
"traffic-director-c2p.xds.googleapis.com",
@ -217,7 +217,7 @@ public class GoogleCloudToProdNameResolverTest {
assertThat(server).containsExactly(
"server_uri", "directpath-pa.googleapis.com",
"channel_creds", ImmutableList.of(ImmutableMap.of("type", "google_default")),
"server_features", ImmutableList.of("xds_v3"));
"server_features", ImmutableList.of("xds_v3", "ignore_resource_deletion"));
Map<String, ?> authorities = (Map<String, ?>) bootstrap.get("authorities");
assertThat(authorities).containsExactly(
"traffic-director-c2p.xds.googleapis.com",