|
|
@ -66,7 +66,7 @@ bool XdsDropConfig::ShouldDrop(const UniquePtr<char>** category_name) const { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
grpc_slice XdsEdsRequestCreateAndEncode(const char* service_name) { |
|
|
|
grpc_slice XdsEdsRequestCreateAndEncode(const char* server_name) { |
|
|
|
upb::Arena arena; |
|
|
|
upb::Arena arena; |
|
|
|
// Create a request.
|
|
|
|
// Create a request.
|
|
|
|
envoy_api_v2_DiscoveryRequest* request = |
|
|
|
envoy_api_v2_DiscoveryRequest* request = |
|
|
@ -83,7 +83,7 @@ grpc_slice XdsEdsRequestCreateAndEncode(const char* service_name) { |
|
|
|
google_protobuf_Struct_FieldsEntry_mutable_value(field, arena.ptr()); |
|
|
|
google_protobuf_Struct_FieldsEntry_mutable_value(field, arena.ptr()); |
|
|
|
google_protobuf_Value_set_bool_value(value, true); |
|
|
|
google_protobuf_Value_set_bool_value(value, true); |
|
|
|
envoy_api_v2_DiscoveryRequest_add_resource_names( |
|
|
|
envoy_api_v2_DiscoveryRequest_add_resource_names( |
|
|
|
request, upb_strview_makez(service_name), arena.ptr()); |
|
|
|
request, upb_strview_makez(server_name), arena.ptr()); |
|
|
|
envoy_api_v2_DiscoveryRequest_set_type_url(request, |
|
|
|
envoy_api_v2_DiscoveryRequest_set_type_url(request, |
|
|
|
upb_strview_makez(kEdsTypeUrl)); |
|
|
|
upb_strview_makez(kEdsTypeUrl)); |
|
|
|
// Encode the request.
|
|
|
|
// Encode the request.
|
|
|
|