From bbd59b4ea7414b3c36171b4bcc6e97cef758e317 Mon Sep 17 00:00:00 2001 From: Rakesh Garimella Date: Fri, 19 Apr 2024 14:04:47 +0200 Subject: [PATCH] fix --- internal/reconciler/metricpipeline/reconciler.go | 2 +- internal/reconciler/tracepipeline/reconciler.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/reconciler/metricpipeline/reconciler.go b/internal/reconciler/metricpipeline/reconciler.go index 77f206d19..cacb77ea0 100644 --- a/internal/reconciler/metricpipeline/reconciler.go +++ b/internal/reconciler/metricpipeline/reconciler.go @@ -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 } diff --git a/internal/reconciler/tracepipeline/reconciler.go b/internal/reconciler/tracepipeline/reconciler.go index 64054a32b..fc37bcd14 100644 --- a/internal/reconciler/tracepipeline/reconciler.go +++ b/internal/reconciler/tracepipeline/reconciler.go @@ -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 }