@@ -187,11 +187,11 @@ func handleError(message string, listOfErrors ...error) error {
187
187
// ValidateBuildRegistration verifies that a referenced Build is properly registered
188
188
func (r * ReconcileBuildRun ) ValidateBuildRegistration (ctx context.Context , build * buildv1alpha1.Build , buildRun * buildv1alpha1.BuildRun ) error {
189
189
if build .Status .Registered == "" {
190
- err := fmt .Errorf ("The Build is not yet validated, build: %s" , build .Name )
190
+ err := fmt .Errorf ("the Build is not yet validated, build: %s" , build .Name )
191
191
return err
192
192
}
193
193
if build .Status .Registered != corev1 .ConditionTrue {
194
- err := fmt .Errorf ("The Build is not registered correctly, build: %s, registered status: %s, reason: %s" , build .Name , build .Status .Registered , build .Status .Reason )
194
+ err := fmt .Errorf ("the Build is not registered correctly, build: %s, registered status: %s, reason: %s" , build .Name , build .Status .Registered , build .Status .Reason )
195
195
updateErr := r .updateBuildRunErrorStatus (ctx , buildRun , err .Error ())
196
196
return handleError ("Build is not ready" , err , updateErr )
197
197
}
@@ -324,7 +324,7 @@ func (r *ReconcileBuildRun) Reconcile(request reconcile.Request) (reconcile.Resu
324
324
return reconcile.Result {}, err
325
325
}
326
326
} else {
327
- ctxlog .Info (ctx , "TaskRun already exists" , namespace , request .Namespace , name , request .Name )
327
+ ctxlog .Info (ctx , "taskRun already exists" , namespace , request .Namespace , name , request .Name )
328
328
329
329
err = r .GetBuildRunObject (ctx , lastTaskRun .Labels [buildv1alpha1 .LabelBuildRun ], request .Namespace , buildRun )
330
330
if err != nil && ! apierrors .IsNotFound (err ) {
@@ -338,7 +338,7 @@ func (r *ReconcileBuildRun) Reconcile(request reconcile.Request) (reconcile.Resu
338
338
// finishes which would be missed otherwise. But, if the TaskRun was already completed and the status
339
339
// synchronized into the BuildRun, then yet another reconciliation is not necessary.
340
340
if buildRun .Status .CompletionTime != nil {
341
- ctxlog .Info (ctx , "BuildRun already marked completed" , namespace , request .Namespace , name , request .Name )
341
+ ctxlog .Info (ctx , "buildRun already marked completed" , namespace , request .Namespace , name , request .Name )
342
342
return reconcile.Result {}, nil
343
343
}
344
344
@@ -461,7 +461,7 @@ func (r *ReconcileBuildRun) retrieveServiceAccount(ctx context.Context, build *b
461
461
if err != nil {
462
462
return nil , err
463
463
}
464
- ctxlog .Debug (ctx , "Automatic generation of service account" , namespace , serviceAccount .Namespace , name , serviceAccount .Name , "Operation" , op )
464
+ ctxlog .Debug (ctx , "automatic generation of service account" , namespace , serviceAccount .Namespace , name , serviceAccount .Name , "Operation" , op )
465
465
} else {
466
466
// If ServiceAccount or the name of ServiceAccount in buildRun is nil, use pipeline serviceaccount
467
467
if buildRun .Spec .ServiceAccount == nil || buildRun .Spec .ServiceAccount .Name == nil {
@@ -560,7 +560,7 @@ func (r *ReconcileBuildRun) createTaskRun(ctx context.Context, build *buildv1alp
560
560
// Set OwnerReference for BuildRun and TaskRun
561
561
if err := r .setOwnerReferenceFunc (buildRun , generatedTaskRun , r .scheme ); err != nil {
562
562
updateErr := r .updateBuildRunErrorStatus (ctx , buildRun , err .Error ())
563
- return nil , handleError ("Failed to set OwnerReference for BuildRun and TaskRun" , err , updateErr )
563
+ return nil , handleError ("failed to set OwnerReference for BuildRun and TaskRun" , err , updateErr )
564
564
}
565
565
566
566
return generatedTaskRun , nil
0 commit comments