1
#pragma once
2

            
3
#include "envoy/config/cluster/v3/cluster.pb.h"
4
#include "envoy/extensions/clusters/dns/v3/dns_cluster.pb.h"
5

            
6
namespace Envoy {
7
namespace Upstream {
8

            
9
/**
10
 * create a DnsCluster from the legacy Cluster options so that we only have to worry about one API.
11
 * NOTE: this does not consider the `typed_dns_resolver_config` field.
12
 * because choosing the dns resolver is done by the factory.
13
 */
14
void createDnsClusterFromLegacyFields(
15
    const envoy::config::cluster::v3::Cluster& cluster,
16
    envoy::extensions::clusters::dns::v3::DnsCluster& new_proto_config);
17

            
18
} // namespace Upstream
19
} // namespace Envoy