Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
migueltol22 committed Apr 15, 2020
1 parent 438b0fd commit edd233e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/tasks/plugins/array/k8s/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (t Task) Launch(ctx context.Context, tCtx core.TaskExecutionContext, kubeCl
pod = applyNodeSelectorLabels(ctx, t.Config, pod)
pod = applyPodTolerations(ctx, t.Config, pod)

allocationStatus, err := allocateResource(ctx, tCtx, t.Config, podName, t.ChildIdx, t.NewArrayStatus)
allocationStatus, err := allocateResource(ctx, tCtx, t.Config, podName)
if err != nil {
return Error, err
}
Expand Down Expand Up @@ -182,7 +182,7 @@ func (t Task) Finalize(ctx context.Context, tCtx core.TaskExecutionContext, kube

}

func allocateResource(ctx context.Context, tCtx core.TaskExecutionContext, config *Config, podName string, childIdx int, arrayStatus *arraystatus.ArrayStatus) (core.AllocationStatus, error) {
func allocateResource(ctx context.Context, tCtx core.TaskExecutionContext, config *Config, podName string) (core.AllocationStatus, error) {
if !IsResourceConfigSet() {
return core.AllocationStatusGranted, nil
}
Expand Down

0 comments on commit edd233e

Please sign in to comment.