@@ -463,10 +463,10 @@ func (op *ShellOperator) conversionEventHandler(ctx context.Context, crdName str
463463}
464464
465465// taskHandler
466- func (op * ShellOperator ) taskHandler (ctx context.Context , t task.Task ) task.TaskResult {
466+ func (op * ShellOperator ) taskHandler (ctx context.Context , t task.Task ) task.Result {
467467 logEntry := op .logger .With ("operator.component" , "taskRunner" )
468468 hookMeta := task_metadata .HookMetadataAccessor (t )
469- var res task.TaskResult
469+ var res task.Result
470470
471471 switch t .GetType () {
472472 case task_metadata .HookRun :
@@ -494,7 +494,7 @@ func (op *ShellOperator) taskHandler(ctx context.Context, t task.Task) task.Task
494494}
495495
496496// taskHandleEnableKubernetesBindings creates task for each Kubernetes binding in the hook and queues them.
497- func (op * ShellOperator ) taskHandleEnableKubernetesBindings (ctx context.Context , t task.Task ) task.TaskResult {
497+ func (op * ShellOperator ) taskHandleEnableKubernetesBindings (ctx context.Context , t task.Task ) task.Result {
498498 ctx , span := otel .Tracer (serviceName ).Start (ctx , "taskHandleEnableKubernetesBindings" )
499499 defer span .End ()
500500
@@ -507,7 +507,7 @@ func (op *ShellOperator) taskHandleEnableKubernetesBindings(ctx context.Context,
507507 op .MetricStorage .GaugeSet (metrics .HookEnableKubernetesBindingsSeconds , d .Seconds (), metricLabels )
508508 })()
509509
510- var res task.TaskResult
510+ var res task.Result
511511 hookLogLabels := map [string ]string {}
512512 hookLogLabels ["hook" ] = hookMeta .HookName
513513 hookLogLabels ["binding" ] = ""
@@ -570,7 +570,7 @@ func (op *ShellOperator) taskHandleEnableKubernetesBindings(ctx context.Context,
570570}
571571
572572// TODO use Context to pass labels and a queue name
573- func (op * ShellOperator ) taskHandleHookRun (ctx context.Context , t task.Task ) task.TaskResult {
573+ func (op * ShellOperator ) taskHandleHookRun (ctx context.Context , t task.Task ) task.Result {
574574 ctx , span := otel .Tracer (serviceName ).Start (ctx , "taskHandleHookRun" )
575575 defer span .End ()
576576
@@ -580,7 +580,7 @@ func (op *ShellOperator) taskHandleHookRun(ctx context.Context, t task.Task) tas
580580 err := taskHook .RateLimitWait (context .Background ())
581581 if err != nil {
582582 // This could happen when the Context is canceled, so just repeat the task until the queue is stopped.
583- return task.TaskResult {
583+ return task.Result {
584584 Status : "Repeat" ,
585585 }
586586 }
@@ -641,7 +641,7 @@ func (op *ShellOperator) taskHandleHookRun(ctx context.Context, t task.Task) tas
641641 }
642642 }
643643
644- var res task.TaskResult
644+ var res task.Result
645645 // Default when shouldRunHook is false.
646646 res .Status = "Success"
647647
0 commit comments