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 474e1c4 commit 11abb22
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 40 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
17 changes: 0 additions & 17 deletions controllers/operator.marin3r/reconciler_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,4 @@ func init() {
"subjects",
},
})
// config.SetDefaultReconcileConfigForGVK(
// schema.FromAPIVersionAndKind("v1", "ServiceAccount"),
// config.ReconcileConfigForGVK{
// EnsureProperties: []string{
// "metadata.annotations",
// "metadata.labels",
// },
// })
// config.SetDefaultReconcileConfigForGVK(
// schema.FromAPIVersionAndKind(operatorv1alpha1.GroupVersion.String(), operatorv1alpha1.DiscoveryServiceCertificateKind),
// config.ReconcileConfigForGVK{
// EnsureProperties: []string{
// "metadata.annotations",
// "metadata.labels",
// "spec",
// },
// })
}

0 comments on commit 11abb22

Please sign in to comment.