Skip to content

Commit

Permalink
changelog added
Browse files Browse the repository at this point in the history
  • Loading branch information
tauhid621 committed Dec 27, 2023
1 parent bd16e60 commit bb8471e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .changelog/20015.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
api: add a new api(/v1/config/resolved-exported-services) to list exported service and their consumers.
```
8 changes: 4 additions & 4 deletions agent/consul/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1043,10 +1043,6 @@ func newGRPCHandlerFromConfig(deps Deps, config *Config, s *Server) connHandler
Backend: s.configEntryBackend,
Logger: deps.Logger.Named("grpc-api.configentry"),
ForwardRPC: func(info structs.RPCInfo, fn func(*grpc.ClientConn) error) (bool, error) {
// Only forward the request if the dc in the request matches the server's datacenter.
if info.RequestDatacenter() != "" && info.RequestDatacenter() != config.Datacenter {
return false, fmt.Errorf("requests to transfer leader cannot be forwarded to remote datacenters")
}
return s.ForwardGRPC(s.grpcConnPool, info, fn)
},
FSMServer: s,
Expand Down Expand Up @@ -1482,6 +1478,10 @@ func (s *Server) setupExternalGRPC(config *Config, deps Deps, logger hclog.Logge
Datacenter: s.config.Datacenter,
ConnectEnabled: s.config.ConnectEnabled,
ForwardRPC: func(info structs.RPCInfo, fn func(*grpc.ClientConn) error) (bool, error) {
// Only forward the request if the dc in the request matches the server's datacenter.
if info.RequestDatacenter() != "" && info.RequestDatacenter() != config.Datacenter {
return false, fmt.Errorf("requests to generate peering tokens cannot be forwarded to remote datacenters")
}
return s.ForwardGRPC(s.grpcConnPool, info, fn)
},
})
Expand Down
1 change: 0 additions & 1 deletion proto/private/pbconfigentry/config_entry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "private/pbcommon/common.proto";


// ConfigEntryService handles operations related to config entries
service ConfigEntryService {
rpc GetResolvedExportedServices(GetResolvedExportedServicesRequest) returns (GetResolvedExportedServicesResponse) {
Expand Down

0 comments on commit bb8471e

Please sign in to comment.