From a16280f01ba08fa58bfbb1d6e0f943671fb44b44 Mon Sep 17 00:00:00 2001 From: Luca Miccini Date: Thu, 12 Sep 2024 09:24:01 +0200 Subject: [PATCH] rollback comments --- controllers/core/openstackversion_controller.go | 3 --- pkg/openstack/version.go | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/controllers/core/openstackversion_controller.go b/controllers/core/openstackversion_controller.go index ff7f34477..4c120d3c0 100644 --- a/controllers/core/openstackversion_controller.go +++ b/controllers/core/openstackversion_controller.go @@ -20,7 +20,6 @@ import ( "context" "os" "strings" - "fmt" k8s_errors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/runtime" @@ -177,7 +176,6 @@ func (r *OpenStackVersionReconciler) Reconcile(ctx context.Context, req ctrl.Req instance.Status.AvailableVersion = &envAvailableVersion defaults := openstack.InitializeOpenStackVersionImageDefaults(ctx, envContainerImages) - Log.Info(fmt.Sprintf("%+v", defaults)) if instance.Status.ContainerImageVersionDefaults == nil { instance.Status.ContainerImageVersionDefaults = make(map[string]*corev1beta1.ContainerDefaults) } @@ -192,7 +190,6 @@ func (r *OpenStackVersionReconciler) Reconcile(ctx context.Context, req ctrl.Req return ctrl.Result{}, nil } instance.Status.ContainerImages = openstack.GetContainerImages(val, *instance) - Log.Info(fmt.Sprintf("%+v", instance.Status.ContainerImages)) instance.Status.Conditions.MarkTrue( corev1beta1.OpenStackVersionInitialized, diff --git a/pkg/openstack/version.go b/pkg/openstack/version.go index c38a35e9d..1054e9208 100644 --- a/pkg/openstack/version.go +++ b/pkg/openstack/version.go @@ -23,7 +23,7 @@ func InitializeOpenStackVersionImageDefaults(ctx context.Context, envImages map[ d := reflect.ValueOf(defaults).Elem() for key, val := range envImages { - Log.Info(fmt.Sprintf("Initialize OpenStackVersion Image Defaults: %s", key)) + //Log.Info(fmt.Sprintf("Initialize OpenStackVersion Image Defaults: %s", key)) r := regexp.MustCompile(`[A-Za-z0-9]+`) matches := r.FindAllString(key, -1) @@ -40,7 +40,7 @@ func InitializeOpenStackVersionImageDefaults(ctx context.Context, envImages map[ // format API so we adhere to go linting standards fieldName = strings.Replace(fieldName, "Api", "API", -1) } - Log.Info(fmt.Sprintf("Initialize Field name: %s", fieldName)) + //Log.Info(fmt.Sprintf("Initialize Field name: %s", fieldName)) field := d.FieldByName(fieldName) if field.IsValid() && field.CanSet() { field.Set(reflect.ValueOf(val))