feat(mesh-phase5): Telemetry/TelemetryDial options + fail-closed validators
Claude-Session: https://claude.ai/code/session_01GASWkNEi68FSCtvr6rLoEW
This commit is contained in:
@@ -48,6 +48,14 @@ public static class ServiceCollectionExtensions
|
||||
configuration, ConfigSourceOptions.SectionName);
|
||||
services.Configure<ConfigServeOptions>(configuration.GetSection(ConfigServeOptions.SectionName));
|
||||
|
||||
// Per-cluster mesh Phase 5: which transport carries a node's live-telemetry stream (node
|
||||
// serve side + central dial side). Validated at startup for the same reason ConfigSource is —
|
||||
// a Grpc-mode node with no listen port or no key produces silence, not an error.
|
||||
services.AddValidatedOptions<TelemetryOptions, TelemetryOptionsValidator>(
|
||||
configuration, TelemetryOptions.SectionName);
|
||||
services.AddValidatedOptions<TelemetryDialOptions, TelemetryDialOptionsValidator>(
|
||||
configuration, TelemetryDialOptions.SectionName);
|
||||
|
||||
services.AddSingleton<IClusterRoleInfo, ClusterRoleInfo>();
|
||||
|
||||
return services;
|
||||
|
||||
Reference in New Issue
Block a user