-
Notifications
You must be signed in to change notification settings - Fork 28
[DNM]consume ldap bindpwd and external edb certs SPCs #1051
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Tirumalavasa The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -382,7 +383,8 @@ func (r *AuthenticationReconciler) SetupWithManager(mgr ctrl.Manager) error { | |||
Watches(&corev1.Service{}, handler.EnqueueRequestForOwner(mgr.GetScheme(), mgr.GetRESTMapper(), &operatorv1alpha1.Authentication{}, handler.OnlyControllerOwner())). | |||
Watches(&netv1.Ingress{}, handler.EnqueueRequestForOwner(mgr.GetScheme(), mgr.GetRESTMapper(), &operatorv1alpha1.Authentication{}, handler.OnlyControllerOwner())). | |||
Watches(&appsv1.Deployment{}, handler.EnqueueRequestForOwner(mgr.GetScheme(), mgr.GetRESTMapper(), &operatorv1alpha1.Authentication{}, handler.OnlyControllerOwner())). | |||
Watches(&autoscalingv2.HorizontalPodAutoscaler{}, handler.EnqueueRequestForOwner(mgr.GetScheme(), mgr.GetRESTMapper(), &operatorv1alpha1.Authentication{}, handler.OnlyControllerOwner())) | |||
Watches(&autoscalingv2.HorizontalPodAutoscaler{}, handler.EnqueueRequestForOwner(mgr.GetScheme(), mgr.GetRESTMapper(), &operatorv1alpha1.Authentication{}, handler.OnlyControllerOwner())). | |||
Watches(&sscsidriverv1.SecretProviderClass{}, handler.EnqueueRequestForOwner(mgr.GetScheme(), mgr.GetRESTMapper(), &operatorv1alpha1.Authentication{}, handler.OnlyControllerOwner())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be conditional, only if SSCSI driver installed?
controllers/operator/deployment.go
Outdated
spc := &sscsidriverv1.SecretProviderClass{} | ||
if ctrlcommon.ClusterHasCSIGroupVersion(&r.DiscoveryClient) { | ||
reqLogger.Info("TML:: SPC object found") | ||
err := r.Client.Get(ctx, types.NamespacedName{Name: spcName, Namespace: namespace}, spc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the spec, it was defined that the lookup of SPC CR is by the label-based lookup, not based on the name. I like though lookup by name - it's more prescriptive and less error prone (e.g. multiple SPC CRs with the same labels in the same namespace)
controllers/operator/deployment.go
Outdated
err := r.Client.Get(ctx, types.NamespacedName{Name: spcName, Namespace: namespace}, spc) | ||
return err == nil | ||
} | ||
reqLogger.Info("TML:: SPC object not-found") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls cleanup logging before submitting the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
https://github.ibm.com/IBMPrivateCloud/roadmap/issues/66808