@@ -19,6 +19,7 @@ package controllers
1919import (
2020 "bytes"
2121 "context"
22+
2223 // These are required for image parsing to work correctly with digest-based pull specs
2324 // See: https://github.com/opencontainers/go-digest/blob/v1.0.0/README.md#usage
2425 _ "crypto/sha256"
@@ -190,7 +191,7 @@ func (r *ImageClusterInstallReconciler) Reconcile(ctx context.Context, req ctrl.
190191
191192 if ici .Spec .BareMetalHostRef == nil {
192193 msg := "No BareMetalHostRef set, nothing to do without provided bmh"
193- log .Infof (msg )
194+ log .Info (msg )
194195 if updateErr := r .setRequirementsMetCondition (ctx , ici , corev1 .ConditionFalse , v1alpha1 .HostValidationPending , msg ); updateErr != nil {
195196 log .WithError (updateErr ).Error ("failed to update ImageClusterInstall status" )
196197 }
@@ -499,7 +500,7 @@ func (r *ImageClusterInstallReconciler) updateBMHProvisioningState(ctx context.C
499500 if bmh .Status .Provisioning .State != bmh_v1alpha1 .StateAvailable && bmh .Status .Provisioning .State != bmh_v1alpha1 .StateExternallyProvisioned {
500501 return nil
501502 }
502- log .Infof ("Updating BareMetalHost %s/%s provisioning state, current PoweredOn status is: %s " , bmh .Namespace , bmh .Name , bmh .Status .PoweredOn )
503+ log .Infof ("Updating BareMetalHost %s/%s provisioning state, current PoweredOn status is: %t " , bmh .Namespace , bmh .Name , bmh .Status .PoweredOn )
503504 if bmh .Status .Provisioning .State == bmh_v1alpha1 .StateAvailable {
504505 if ! bmh .Spec .ExternallyProvisioned {
505506 log .Infof ("Setting BareMetalHost (%s/%s) ExternallyProvisioned spec" , bmh .Namespace , bmh .Name )
@@ -849,7 +850,7 @@ func (r *ImageClusterInstallReconciler) getClusterInfoFromFile(log logrus.FieldL
849850 clusterInfo := lca_api.SeedReconfiguration {}
850851 err = json .Unmarshal (data , & clusterInfo )
851852 if err != nil {
852- log .Warnf ("failed to marshal cluster info: %w " , err )
853+ log .Warnf ("failed to marshal cluster info: %s " , err )
853854 return nil
854855 }
855856 return & clusterInfo
0 commit comments