Erroneous condition for Trace/Metric/Log Pipelines evaluates to TLSCertificateInvalid by default #1571
Labels
area/logs
LogPipeline
area/metrics
MetricPipeline
area/traces
TracePipeline
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
Description
When there's an error returned within the
status.go
evaluateConfigGeneratedCondition
function, if its type is not handled within the function, it gets by default handled by theconditions.EvaluateTLSCertCondition()
function, which evaluates it to aTLSConfigurationInvalid
error reason.Criterias
Find some alternative method of defaulting the condition reason in case of error, maybe by introducing a new
UnknownError
reason, or something that would signal the developer that the specific error type is not handled anywhere, rather than setting it toTLSConfigurationInvalid
and further confusing the developer.Reasons
It's time-consuming during debugging to figure out what really happened in such a scenario, and might confuse customers as well if some unknown error reaches production, getting evaluated, handled, and alerted as a
TLSConfigurationInvalid
type of error.Attachments
telemetry-manager/internal/reconciler/tracepipeline/status.go
Line 99 in 335ea34
telemetry-manager/internal/conditions/tls_cert_conditions.go
Line 23 in 335ea34
Release Notes
The text was updated successfully, but these errors were encountered: