From 94be99fa72edf99f5c823b47871ed59350a67061 Mon Sep 17 00:00:00 2001 From: John Belamaric Date: Wed, 14 Jun 2023 06:48:59 -0700 Subject: [PATCH] Comment out code I think may not be used --- .../pkg/reconcilers/generic-specializer/reconciler.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/controllers/pkg/reconcilers/generic-specializer/reconciler.go b/controllers/pkg/reconcilers/generic-specializer/reconciler.go index e604d0f4..925dc9df 100644 --- a/controllers/pkg/reconcilers/generic-specializer/reconciler.go +++ b/controllers/pkg/reconcilers/generic-specializer/reconciler.go @@ -254,12 +254,15 @@ func (r *reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu for _, c := range kptfile.Status.Conditions { if strings.HasPrefix(c.Type, kptfilelibv1.GetConditionType(&r.vlanFor)+".") || strings.HasPrefix(c.Type, kptfilelibv1.GetConditionType(&r.ipamFor)+".") { - r.l.Info("generic specializer conditions", "cluserName", clusterName, "status", c.Status, "condition", c.Type) + r.l.Info("generic specializer conditions", "clusterName", clusterName, "status", c.Status, "condition", c.Type) } } } } + /* + * jbelamaric: Since we never save the PR, I don't think this does anything? + * kptfile := rl.Items.GetRootKptfile() if kptfile == nil { r.recorder.Event(pr, corev1.EventTypeWarning, "ReconcileError", "mandatory Kptfile is missing") @@ -274,6 +277,7 @@ func (r *reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu return ctrl.Result{}, nil } pr.Status.Conditions = porchcondition.GetPorchConditions(kptf.GetConditions()) + */ afterHash, err := porchutil.PackageRevisionResourcesHash(prr) if err != nil {