Skip to content

Commit

Permalink
Fix #1340 parameter substitution bug
Browse files Browse the repository at this point in the history
Signed-off-by: Ilias Katsakioris <[email protected]>
  • Loading branch information
elikatsis committed Apr 27, 2019
1 parent 4e37a44 commit e9f2a46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion workflow/controller/workflowpod.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ func (woc *wfOperationCtx) createWorkflowPod(nodeName string, mainCtr apiv1.Cont
// Perform one last variable substitution here. Some variables come from the from workflow
// configmap (e.g. archive location) or volumes attribute, and were not substituted
// in executeTemplate.
podParams := woc.globalParams
podParams := make(map[string]string)
for gkey, gval := range woc.globalParams {
podParams[gkey] = gval
}
for _, inParam := range tmpl.Inputs.Parameters {
podParams["inputs.parameters."+inParam.Name] = *inParam.Value
}
Expand Down

0 comments on commit e9f2a46

Please sign in to comment.