@@ -71,13 +71,11 @@ func (r *ServiceExportReconciler) Reconcile(ctx context.Context, req ctrl.Reques
71
71
namespacedName := types.NamespacedName {Namespace : serviceExport .Namespace , Name : serviceExport .Name }
72
72
if err := r .Client .Get (ctx , namespacedName , & service ); err != nil {
73
73
if errors .IsNotFound (err ) {
74
- r .Log .Info ("no Service found, deleting the ServiceExport" ,
75
- "Namespace" , serviceExport .Namespace , "Name" , serviceExport .Name )
74
+ r .Log .Info ("no Service found, deleting the ServiceExport" , "Namespace" , serviceExport .Namespace , "Name" , serviceExport .Name )
76
75
// Mark ServiceExport to be deleted, if the corresponding Service is not found
77
76
isServiceExportMarkedForDelete = true
78
77
} else {
79
- r .Log .Error (err , "error fetching Service" ,
80
- "Namespace" , serviceExport .Namespace , "Name" , serviceExport .Name )
78
+ r .Log .Error (err , "error fetching Service" , "Namespace" , serviceExport .Namespace , "Name" , serviceExport .Name )
81
79
return ctrl.Result {}, nil
82
80
}
83
81
}
@@ -238,9 +236,7 @@ func (r *ServiceExportReconciler) extractEndpoints(ctx context.Context, svc *v1.
238
236
}
239
237
240
238
attributes := make (map [string ]string )
241
- if version .GetVersion () != "" {
242
- attributes [model .K8sVersionAttr ] = version .PackageName + " " + version .GetVersion ()
243
- }
239
+ attributes [model .K8sVersionAttr ] = version .GetPackageVersion ()
244
240
245
241
endpoints := make ([]* model.Endpoint , 0 )
246
242
for _ , slice := range endpointSlices .Items {
0 commit comments