Fix dp-aware incompatible with service-discovery (#14629)
This commit is contained in:
@@ -574,12 +574,6 @@ impl ConfigValidator {
|
||||
}
|
||||
}
|
||||
|
||||
if has_service_discovery && config.dp_aware {
|
||||
return Err(ConfigError::IncompatibleConfig {
|
||||
reason: "DP-aware routing is not compatible with service discovery".to_string(),
|
||||
});
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
@@ -393,7 +393,7 @@ async fn handle_pod_event(
|
||||
health_failure_threshold: app_context.router_config.health_check.failure_threshold,
|
||||
max_connection_attempts: app_context.router_config.health_check.success_threshold
|
||||
* 20,
|
||||
dp_aware: false,
|
||||
dp_aware: app_context.router_config.dp_aware,
|
||||
};
|
||||
|
||||
let job = Job::AddWorker {
|
||||
|
||||
Reference in New Issue
Block a user