Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Avoid overriding the Workflow parameter when it is merging with WorkflowTemplate parameter #3651

Merged
merged 6 commits into from Jul 31, 2020

Conversation

sarabala1979
Copy link
Member

@sarabala1979 sarabala1979 commented Jul 31, 2020

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234". Fixes v2.9.4: Parameter file with WorkflowTemplate items unset #3630
  • I've signed the CLA.
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

@sarabala1979 sarabala1979 marked this pull request as ready for review July 31, 2020 16:59
@@ -2925,7 +2925,7 @@ func (woc *wfOperationCtx) loadExecutionSpec() (wfv1.TemplateReferenceHolder, wf
}

// Merge the workflow spec and storedWorkflowspec.
targetWf := wfv1.Workflow{Spec: woc.wf.Spec}
targetWf := wfv1.Workflow{Spec: *woc.wf.Spec.DeepCopy()}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ek!

Copy link
Contributor

@alexec alexec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Backport to v2.10 and v2.9?

@sarabala1979 sarabala1979 merged commit a3a4ea0 into argoproj:master Jul 31, 2020
sarabala1979 added a commit that referenced this pull request Jul 31, 2020
sarabala1979 added a commit that referenced this pull request Jul 31, 2020
@sarabala1979
Copy link
Member Author

backported to 2.9 and 2.10

@alexec
Copy link
Contributor

alexec commented Aug 3, 2020

Fixed and available in v2.10.0-rc5.

@alexec
Copy link
Contributor

alexec commented Aug 6, 2020

Available in v2.9.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v2.9.4: Parameter file with WorkflowTemplate items unset
2 participants