Skip to content

Commit 179c802

Browse files
authored
fix(reconciler): improve naming (#260)
1 parent c98da60 commit 179c802

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

internal/controller/dragonfly_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,5 +291,6 @@ func (r *DragonflyReconciler) SetupWithManager(mgr ctrl.Manager) error {
291291
For(&dfv1alpha1.Dragonfly{}, builder.WithPredicates(predicate.GenerationChangedPredicate{})).
292292
Owns(&appsv1.StatefulSet{}).
293293
Owns(&corev1.Service{}).
294+
Named("Dragonfly").
294295
Complete(r)
295296
}

internal/controller/dragonfly_pod_lifecycle_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ func (r *DfPodLifeCycleReconciler) SetupWithManager(mgr ctrl.Manager) error {
204204
return e.Object.GetLabels()[resources.KubernetesAppNameLabelKey] == "dragonfly"
205205
},
206206
}).
207+
Named("DragonflyPodLifecycle").
207208
For(&corev1.Pod{}).
208209
Complete(r)
209210
}

0 commit comments

Comments
 (0)