Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rakesh-garimella committed Apr 19, 2024
1 parent 81437dc commit bbd59b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/reconciler/metricpipeline/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,5 +315,5 @@ func tlsCertValidationRequired(pipeline *telemetryv1alpha1.MetricPipeline) bool
if otlp.TLS == nil {
return false
}
return otlp.TLS.Cert == nil || otlp.TLS.Key == nil
return otlp.TLS.Cert != nil || otlp.TLS.Key != nil
}
2 changes: 1 addition & 1 deletion internal/reconciler/tracepipeline/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,5 +269,5 @@ func tlsCertValidationRequired(pipeline *telemetryv1alpha1.TracePipeline) bool {
return false
}

return pipeline.Spec.Output.Otlp.TLS.Cert == nil && pipeline.Spec.Output.Otlp.TLS.Key == nil
return otlp.TLS.Cert != nil || otlp.TLS.Key != nil
}

0 comments on commit bbd59b4

Please sign in to comment.