Skip to content

Commit

Permalink
fix: Resource requests on init/wait containers. Fixes argoproj#6809
Browse files Browse the repository at this point in the history
Signed-off-by: zorulo <artist.swimmer.cheng@gmail.com>
  • Loading branch information
zorulo committed Oct 6, 2021
1 parent efa11e0 commit ca955e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/controller/workflowpod.go
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ func (woc *wfOperationCtx) newExecContainer(name string, tmpl *wfv1.Template) *a
}

func isResourcesSpecified(ctr *apiv1.Container) bool {
return ctr != nil && len(ctr.Resources.Limits) != 0
return ctr != nil && (len(ctr.Resources.Limits) != 0 || len(ctr.Resources.Requests) != 0)
}

// addMetadata applies metadata specified in the template
Expand Down

0 comments on commit ca955e5

Please sign in to comment.