[xDS] change CDS policy to get channel creds via the helper (#33457)

I missed this one in #33451.
pull/33464/head
Mark D. Roth 1 year ago committed by GitHub
parent 50e970246f
commit e7a339d72c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/ext/filters/client_channel/lb_policy/xds/cds.cc

@ -562,7 +562,7 @@ void CdsLb::OnResourceDoesNotExist(const std::string& name) {
absl::Status CdsLb::UpdateXdsCertificateProvider(
const std::string& cluster_name, const XdsClusterResource& cluster_data) {
// Early out if channel is not configured to use xds security.
auto* channel_credentials = args_.GetObject<grpc_channel_credentials>();
auto channel_credentials = channel_control_helper()->GetChannelCredentials();
if (channel_credentials == nullptr ||
channel_credentials->type() != XdsCredentials::Type()) {
xds_certificate_provider_ = nullptr;

Loading…
Cancel
Save