Skip to content

Commit

Permalink
fix(dexcontroller): ensure orgs without oidc are not reconciled (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvoGoman authored Oct 28, 2024
1 parent 28e2928 commit e397192
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controllers/organization/dex_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ func (r *DexReconciler) SetupWithManager(name string, mgr ctrl.Manager) error {
}
return ctrl.NewControllerManagedBy(mgr).
Named(name).
For(&greenhousesapv1alpha1.Organization{}).
For(&greenhousesapv1alpha1.Organization{},
builder.WithPredicates(clientutil.PredicateHasOICDConfigured())).
Owns(&dexapi.Connector{}).
Owns(&dexapi.OAuth2Client{}).
// Watch secrets referenced by organizations for confidential values.
Expand Down

0 comments on commit e397192

Please sign in to comment.