You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor CRD Telemetry Config Conversion for Reusability (#2908)
Refactor CRD Telmetry Config Conversion for Reusability
- Moved the telemetry.Config construction logic that was within WithTelemetryConfig to telemetry.MaybeMakeConfig.
- Renamed WithTelemetryConfig to WithTelemetryConfigFlags which behaves just as before.
- Created WithTelemetryConfig which just assign the given telemetry config.
- Created spectoconfig/telemetry.go (pronounced "Spec To Config" other names welcome) which contains ConvertTelemetryConfig. ConvertTelemetryConfig is exactly the same as AddTelemetryConfigOptions minus creating the option.
Signed-off-by: Jeremy Drouillard <jeremy@stacklok.com>
0 commit comments