From de77700ffafb69f2caa5bac57d1e9dfbbebe105e Mon Sep 17 00:00:00 2001 From: vsoch Date: Mon, 25 Sep 2023 17:54:06 -0600 Subject: [PATCH] do not use fmt; Signed-off-by: vsoch --- pkg/addons/volumes.go | 1 - pkg/metrics/metrics.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/addons/volumes.go b/pkg/addons/volumes.go index deaa525..38825dc 100644 --- a/pkg/addons/volumes.go +++ b/pkg/addons/volumes.go @@ -212,7 +212,6 @@ func (v *PersistentVolumeClaim) SetOptions(metric *api.MetricAddon) { // AssembleVolumes for a pvc func (v *PersistentVolumeClaim) AssembleVolumes() []specs.VolumeSpec { - fmt.Println("ADDING PVC HERE") volume := corev1.Volume{ Name: v.name, VolumeSource: corev1.VolumeSource{ diff --git a/pkg/metrics/metrics.go b/pkg/metrics/metrics.go index 415d3e0..a86db07 100644 --- a/pkg/metrics/metrics.go +++ b/pkg/metrics/metrics.go @@ -85,12 +85,12 @@ func GetMetric(metric *api.Metric, set *api.MetricSet) (Metric, error) { // Register addons, meaning adding the spec but not instantiating yet (or should we?) for _, a := range metric.Addons { - fmt.Printf("Attempting to add addon %s", a.Name) + logger.Infof("Attempting to add addon %s", a.Name) addon, err := addons.GetAddon(&a) if err != nil { return nil, fmt.Errorf("Addon %s for metric %s did not validate", a.Name, metric.Name) } - fmt.Printf("Registering addon %s", a.Name) + logger.Infof("Registering addon %s", a.Name) m.RegisterAddon(&addon) }