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: validate template of the same name. Fixes #13763 #14043

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

tczhao
Copy link
Member

@tczhao tczhao commented Jan 1, 2025

Fixes #13763

Motivation

Validate template even if they use the same name (happened in nested template situation).
So that all templates are validated and cached in storedTemplate upon workflow submission

Modifications

Include templateScope in validation cache,
so that the validation is aware which workflowTemplate is the current template coming from, and template of the same name from different workflowTemplate will not skip validation

Verification

Added unit test, test failed
Added code change, unit test passed

@tczhao
Copy link
Member Author

tczhao commented Jan 1, 2025

/retest

1 similar comment
@tczhao
Copy link
Member Author

tczhao commented Jan 1, 2025

/retest

@tczhao tczhao marked this pull request as ready for review January 1, 2025 21:48
Copy link
Member

@shuangkun shuangkun left a comment

Choose a reason for hiding this comment

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

LGTM

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

@isubasinghe isubasinghe merged commit 2ece85c into argoproj:main Jan 7, 2025
32 checks passed
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.

Template of the same name are not validated
4 participants