Skip to content

Commit

Permalink
fix: comments and owns
Browse files Browse the repository at this point in the history
  • Loading branch information
powerfooI committed Nov 14, 2023
1 parent 34ace16 commit 7fde770
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkg/controller/obcluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ func (r *OBClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
func (r *OBClusterReconciler) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
For(&v1alpha1.OBCluster{}).
Owns(&v1alpha1.OBZone{}).
WithEventFilter(preds).
Complete(r)
}
1 change: 1 addition & 0 deletions pkg/controller/obzone_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func (r *OBZoneReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctr
func (r *OBZoneReconciler) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
For(&v1alpha1.OBZone{}).
Owns(&v1alpha1.OBServer{}).
WithEventFilter(preds).
Complete(r)
}
4 changes: 2 additions & 2 deletions pkg/resource/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import (
)

const (
// If no task flow, requeue after 60 sec.
// If no task flow, requeue after 30 sec.
NormalRequeueDuration = 30 * time.Second
// In task flow, requeue after 500 ms.
// In task flow, requeue after 1 sec.
ExecutionRequeueDuration = 1 * time.Second
)

Expand Down

0 comments on commit 7fde770

Please sign in to comment.