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: Make defaultWorkflow hooks work more than once #11693

Merged
merged 2 commits into from Aug 29, 2023

Conversation

Joibel
Copy link
Member

@Joibel Joibel commented Aug 28, 2023

As workflowDefaults are passed by pointer we're modifying them directly here before modifying them such that StrategicMerge can work.

Undo the modification we make directly so that the next time we patch it's still there.

Fixes a bug introduced in the fix in #11214

Verification

Run with workflowDefaults having hooks more than once.

As workflowDefaults are passed by pointer we're modifying them
directly here before modifying them such that StrategicMerge can work.

Undo the modification we make directly so that the next time we patch
it's still there

Signed-off-by: Alan Clucas <alan@clucas.org>
Copy link
Member

@isubasinghe isubasinghe left a comment

Choose a reason for hiding this comment

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

LGTM

@terrytangyuan terrytangyuan merged commit 18820c3 into argoproj:master Aug 29, 2023
23 checks passed
@Joibel Joibel deleted the fix-default-hooks branch January 15, 2024 15:27
dpadhiar pushed a commit to dpadhiar/argo-workflows that referenced this pull request May 9, 2024
Signed-off-by: Dillen Padhiar <dillen_padhiar@intuit.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants