Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
roivaz committed Feb 5, 2024
1 parent 2d21dee commit c739c32
Showing 1 changed file with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,29 +43,6 @@ type DiscoveryServiceCertificateReconciler struct {
// +kubebuilder:rbac:groups="core",namespace=placeholder,resources=secrets,verbs=get;list;watch;create;update;patch

func (r *DiscoveryServiceCertificateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
// log := r.Log.WithValues("name", request.Name, "namespace", request.Namespace)

// // Fetch the DiscoveryServiceCertificate instance
// dsc := &operatorv1alpha1.DiscoveryServiceCertificate{}
// err := r.Client.Get(ctx, request.NamespacedName, dsc)
// if err != nil {
// if errors.IsNotFound(err) {
// // Request object not found, could have been deleted after reconcile request.
// // Owned objects are automatically garbage collected. For additional cleanup logic use finalizers.
// // Return and don't requeue
// return ctrl.Result{}, nil
// }
// return ctrl.Result{}, err
// }

// if ok := discoveryservicecertificate.IsInitialized(dsc); !ok {
// if err := r.Client.Update(ctx, dsc); err != nil {
// log.Error(err, "unable to update DiscoveryServiceCertificate")
// return ctrl.Result{}, err
// }
// log.Info("initialized DiscoveryServiceCertificate resource")
// return reconcile.Result{}, nil
// }

ctx, log := r.Logger(ctx, "name", req.Name, "namespace", req.Namespace)
dsc := &operatorv1alpha1.DiscoveryServiceCertificate{}
Expand Down

0 comments on commit c739c32

Please sign in to comment.