fix(samlclient): watch idp secret instead of service

This commit is contained in:
Hugo Renard 2024-07-10 14:03:25 +02:00
parent 69b2dcf7f9
commit 265563b2ee
Signed by: hougo
GPG key ID: 3A285FD470209C59

View file

@ -193,7 +193,7 @@ func (r *SAMLClientReconciler) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
For(&lshcore.SAMLClient{}).
Owns(&certmanager.Certificate{}).
Watches(&corev1.Service{}, handler.EnqueueRequestsFromMapFunc(r.findObjectsForSecret)).
Watches(&corev1.Secret{}, handler.EnqueueRequestsFromMapFunc(r.findObjectsForSecret)).
Complete(r)
}