@@ -48,6 +48,7 @@ import (
48
48
handler "sigs.k8s.io/controller-runtime/pkg/handler"
49
49
"sigs.k8s.io/controller-runtime/pkg/predicate"
50
50
"sigs.k8s.io/controller-runtime/pkg/reconcile"
51
+ sscsidriverv1 "sigs.k8s.io/secrets-store-csi-driver/apis/v1"
51
52
52
53
certmgr "github.com/IBM/ibm-iam-operator/apis/certmanager/v1"
53
54
operatorv1alpha1 "github.com/IBM/ibm-iam-operator/apis/operator/v1alpha1"
@@ -382,7 +383,8 @@ func (r *AuthenticationReconciler) SetupWithManager(mgr ctrl.Manager) error {
382
383
Watches (& corev1.Service {}, handler .EnqueueRequestForOwner (mgr .GetScheme (), mgr .GetRESTMapper (), & operatorv1alpha1.Authentication {}, handler .OnlyControllerOwner ())).
383
384
Watches (& netv1.Ingress {}, handler .EnqueueRequestForOwner (mgr .GetScheme (), mgr .GetRESTMapper (), & operatorv1alpha1.Authentication {}, handler .OnlyControllerOwner ())).
384
385
Watches (& appsv1.Deployment {}, handler .EnqueueRequestForOwner (mgr .GetScheme (), mgr .GetRESTMapper (), & operatorv1alpha1.Authentication {}, handler .OnlyControllerOwner ())).
385
- Watches (& autoscalingv2.HorizontalPodAutoscaler {}, handler .EnqueueRequestForOwner (mgr .GetScheme (), mgr .GetRESTMapper (), & operatorv1alpha1.Authentication {}, handler .OnlyControllerOwner ()))
386
+ Watches (& autoscalingv2.HorizontalPodAutoscaler {}, handler .EnqueueRequestForOwner (mgr .GetScheme (), mgr .GetRESTMapper (), & operatorv1alpha1.Authentication {}, handler .OnlyControllerOwner ())).
387
+ Watches (& sscsidriverv1.SecretProviderClass {}, handler .EnqueueRequestForOwner (mgr .GetScheme (), mgr .GetRESTMapper (), & operatorv1alpha1.Authentication {}, handler .OnlyControllerOwner ()))
386
388
387
389
//Add routes
388
390
if ctrlcommon .ClusterHasOpenShiftConfigGroupVerison (& r .DiscoveryClient ) {
@@ -397,6 +399,9 @@ func (r *AuthenticationReconciler) SetupWithManager(mgr ctrl.Manager) error {
397
399
if ctrlcommon .ClusterHasOperandBindInfoAPIResource (& r .DiscoveryClient ) {
398
400
authCtrl .Watches (& operatorv1alpha1.OperandBindInfo {}, handler .EnqueueRequestForOwner (mgr .GetScheme (), mgr .GetRESTMapper (), & operatorv1alpha1.Authentication {}, handler .OnlyControllerOwner ()))
399
401
}
402
+ if ctrlcommon .ClusterHasCSIGroupVersion (& r .DiscoveryClient ) {
403
+ authCtrl .Watches (& sscsidriverv1.SecretProviderClass {}, handler .EnqueueRequestForOwner (mgr .GetScheme (), mgr .GetRESTMapper (), & operatorv1alpha1.Authentication {}, handler .OnlyControllerOwner ()))
404
+ }
400
405
401
406
productCMPred := predicate.Funcs {
402
407
UpdateFunc : func (e event.UpdateEvent ) bool {
0 commit comments