generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 500
Open
Labels
kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.Categorizes issue or PR as related to cleaning up code, process, or technical debt.
Description
What would you like to be cleaned:
I'd propose implementing UTs for the WorkloadReconciler predicate functions (Create, Update, ...).
| func (r *WorkloadReconciler) Create(e event.TypedCreateEvent[*kueue.Workload]) bool { |
| func (r *WorkloadReconciler) Delete(e event.TypedDeleteEvent[*kueue.Workload]) bool { |
| func (r *WorkloadReconciler) Update(e event.TypedUpdateEvent[*kueue.Workload]) bool { |
kueue/pkg/controller/core/workload_controller.go
Line 1007 in b7fdcd4
| func (r *WorkloadReconciler) Generic(e event.TypedGenericEvent[*kueue.Workload]) bool { |
Why is this needed:
The WorkloadReconciler predicates are very complicated, but we have no UT. So, I believe that adding UTs stabilizes the workload controller.
Metadata
Metadata
Assignees
Labels
kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.Categorizes issue or PR as related to cleaning up code, process, or technical debt.