From ba87f17e8a9dbe85b4e74185f5277f129cc2e894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Br=C3=A5then=20Oma?= Date: Fri, 13 Sep 2024 14:12:34 +0200 Subject: [PATCH] Clean up --- pkg/resourcegenerator/istio/telemetry/telemetry.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/resourcegenerator/istio/telemetry/telemetry.go b/pkg/resourcegenerator/istio/telemetry/telemetry.go index 22c9f83f..a7236da3 100644 --- a/pkg/resourcegenerator/istio/telemetry/telemetry.go +++ b/pkg/resourcegenerator/istio/telemetry/telemetry.go @@ -22,14 +22,10 @@ func Generate(r reconciliation.Reconciliation) error { } object := r.GetSKIPObject() - istioSettings := object.GetCommonSpec().IstioSettings - - // Create name for resource from name and type, in lowercase - name := fmt.Sprintf("%s-%s", object.GetName(), strings.ToLower(string(r.GetType()))) - telemetry := telemetryv1.Telemetry{ObjectMeta: metav1.ObjectMeta{Namespace: object.GetNamespace(), Name: name}} + telemetry := telemetryv1.Telemetry{ObjectMeta: metav1.ObjectMeta{Namespace: object.GetNamespace(), Name: name}} var telemetryTracing []*telemetryapiv1.Tracing for _, tracingSetting := range istioSettings.Telemetry.Tracing { telemetryTracing = append(telemetryTracing, &telemetryapiv1.Tracing{