Skip to content

Commit 3f15b2f

Browse files
Merge pull request #589 from lmiccini/fix-frr-cleanup-error-handling
Fix FRR old namespace cleanup error handling in reconcileDelete
2 parents fc58bcd + d379034 commit 3f15b2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/controller/network/bgpconfiguration_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ func (r *BGPConfigurationReconciler) reconcileDelete(ctx context.Context, instan
384384

385385
if frrNamespace != instance.Spec.FRRConfigurationNamespace {
386386
if err := r.cleanupOldNamespaceFRRConfigurations(ctx, instance, instance.Spec.FRRConfigurationNamespace); err != nil {
387-
Log.Error(err, "Failed to cleanup FRRConfigurations from old namespace", "namespace", instance.Spec.FRRConfigurationNamespace)
387+
return ctrl.Result{}, fmt.Errorf("error cleaning up FRRConfigurations from old namespace %s: %w", instance.Spec.FRRConfigurationNamespace, err)
388388
}
389389
}
390390

0 commit comments

Comments
 (0)