Skip to content

Commit

Permalink
fix: activator logic. (#4430)
Browse files Browse the repository at this point in the history
Signed-off-by: yy <[email protected]>
  • Loading branch information
lingdie authored Dec 18, 2023
1 parent 72852aa commit a5be5cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/license/internal/controller/license_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ func (r *LicenseReconciler) SetupWithManager(mgr ctrl.Manager, db *database.Data
db: db,
}

r.activator = &LicenseActivator{
Client: r.Client,
}

// reconcile on generation change
return ctrl.NewControllerManagedBy(mgr).
For(&licensev1.License{}, builder.WithPredicates(predicate.And(predicate.GenerationChangedPredicate{}))).
Expand Down

0 comments on commit a5be5cb

Please sign in to comment.