googledirectpatph: enable ignore_resource_deletion in bootstrap (#6243) (#6246)

This commit is contained in:
Doug Fawley 2023-05-02 14:24:31 -07:00 committed by GitHub
parent 3fc6e0016e
commit d33f68e712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ func (c2pResolverBuilder) Build(t resolver.Target, cc resolver.ClientConn, opts
{
"server_uri": "%s",
"channel_creds": [{"type": "google_default"}],
"server_features": ["xds_v3"]
"server_features": ["xds_v3", "ignore_resource_deletion"]
}`, balancerName)))
if err != nil {
return nil, fmt.Errorf("failed to build bootstrap configuration: %v", err)

View File

@ -216,7 +216,7 @@ func TestBuildXDS(t *testing.T) {
wantServerConfig, err := bootstrap.ServerConfigFromJSON([]byte(fmt.Sprintf(`{
"server_uri": "%s",
"channel_creds": [{"type": "google_default"}],
"server_features": ["xds_v3"]
"server_features": ["xds_v3", "ignore_resource_deletion"]
}`, tdURL)))
if err != nil {
t.Fatalf("Failed to build server bootstrap config: %v", err)