Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
omaen committed Sep 13, 2024
1 parent 119d4be commit ba87f17
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/resourcegenerator/istio/telemetry/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit ba87f17

Please sign in to comment.