@@ -186,32 +186,32 @@ func (r *OctaviaAmphoraControllerReconciler) Reconcile(ctx context.Context, req
186186func (r * OctaviaAmphoraControllerReconciler ) reconcileDelete (ctx context.Context , instance * octaviav1.OctaviaAmphoraController ,
187187 helper * helper.Helper ) (ctrl.Result , error ) {
188188 Log := r .GetLogger (ctx )
189- Log .Info ("Reconciling Service delete" )
189+ Log .V ( 1 ). Info ("Reconciling Service delete" )
190190
191191 controllerutil .RemoveFinalizer (instance , helper .GetFinalizer ())
192192
193- Log .Info ("Reconciled Service delete successfully" )
193+ Log .V ( 1 ). Info ("Reconciled Service delete successfully" )
194194 return ctrl.Result {}, nil
195195}
196196
197197func (r * OctaviaAmphoraControllerReconciler ) reconcileUpdate (ctx context.Context ) (ctrl.Result , error ) {
198198 Log := r .GetLogger (ctx )
199- Log .Info ("Reconciling Service update" )
200- Log .Info ("Reconciled Service update successfully" )
199+ Log .V ( 1 ). Info ("Reconciling Service update" )
200+ Log .V ( 1 ). Info ("Reconciled Service update successfully" )
201201 return ctrl.Result {}, nil
202202}
203203
204204func (r * OctaviaAmphoraControllerReconciler ) reconcileUpgrade (ctx context.Context ) (ctrl.Result , error ) {
205205 Log := r .GetLogger (ctx )
206- Log .Info ("Reconciling Service upgrade" )
207- Log .Info ("Reconciled Service upgrade successfully" )
206+ Log .V ( 1 ). Info ("Reconciling Service upgrade" )
207+ Log .V ( 1 ). Info ("Reconciled Service upgrade successfully" )
208208 return ctrl.Result {}, nil
209209}
210210
211211func (r * OctaviaAmphoraControllerReconciler ) reconcileNormal (ctx context.Context , instance * octaviav1.OctaviaAmphoraController ,
212212 helper * helper.Helper ) (ctrl.Result , error ) {
213213 Log := r .GetLogger (ctx )
214- Log .Info ("Reconciling Service" )
214+ Log .V ( 1 ). Info ("Reconciling Service" )
215215
216216 // Prepare NetworkAttachments first, it must be done before generating the
217217 // configuration as the config uses IP addresses of the attachments.
@@ -305,7 +305,7 @@ func (r *OctaviaAmphoraControllerReconciler) reconcileNormal(ctx context.Context
305305 if err != nil {
306306 return ctrl.Result {}, err
307307 }
308- r .Log .Info (fmt .Sprintf ("Using default flavor \" %s\" " , defaultFlavorID ))
308+ r .Log .V ( 1 ). Info (fmt .Sprintf ("Using default flavor \" %s\" " , defaultFlavorID ))
309309
310310 templateVars := OctaviaTemplateVars {
311311 LbMgmtNetworkID : instance .Spec .LbMgmtNetworkID ,
@@ -458,10 +458,11 @@ func (r *OctaviaAmphoraControllerReconciler) reconcileNormal(ctx context.Context
458458 // We reached the end of the Reconcile, update the Ready condition based on
459459 // the sub conditions
460460 if instance .Status .Conditions .AllSubConditionIsTrue () {
461+ Log .Info ("Amphora controller is now ready." )
461462 instance .Status .Conditions .MarkTrue (
462463 condition .ReadyCondition , condition .ReadyMessage )
463464 } else {
464- Log .Info ("Not all conditions are ready for Amphora controller" )
465+ Log .V ( 1 ). Info ("Not all conditions are ready for Amphora controller yet " )
465466 }
466467 return ctrl.Result {}, nil
467468}
@@ -474,7 +475,7 @@ func (r *OctaviaAmphoraControllerReconciler) generateServiceConfigMaps(
474475 templateVars OctaviaTemplateVars ,
475476 ospSecret * corev1.Secret ,
476477) error {
477- r .Log .Info (fmt .Sprintf ("generating service config map for %s (%s)" , instance .Name , instance .Kind ))
478+ r .Log .V ( 1 ). Info (fmt .Sprintf ("generating service config map for %s (%s)" , instance .Name , instance .Kind ))
478479 cmLabels := labels .GetLabels (instance , labels .GetGroupLabel (instance .ObjectMeta .Name ), map [string ]string {})
479480 db , err := mariadbv1 .GetDatabaseByNameAndAccount (ctx , helper , octavia .DatabaseName , instance .Spec .DatabaseAccount , instance .Namespace )
480481 if err != nil {
@@ -642,8 +643,7 @@ func (r *OctaviaAmphoraControllerReconciler) generateServiceConfigMaps(
642643 return err
643644 }
644645
645- r .Log .Info ("Service config map generated" )
646-
646+ r .Log .V (1 ).Info ("Service config map generated" )
647647 return nil
648648}
649649
0 commit comments