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: Replace expressions with placeholders in resource manifest template. Fixes #10924 #10926

Merged
merged 10 commits into from
Apr 24, 2023

Conversation

crowcrow
Copy link
Contributor

Fixes #10924

@crowcrow crowcrow marked this pull request as ready for review April 18, 2023 11:46
@crowcrow
Copy link
Contributor Author

crowcrow commented Apr 18, 2023

Test failures 1, 2 do not look related to the changes in this PR

Copy link
Contributor

@maxsxu maxsxu left a comment

Choose a reason for hiding this comment

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

@crowcrow Thanks for this fix! I'm sure we've run into this problem many times.

Just give more details for reproduction: this issue only occurs when the WorkflowTemplate is submitted via the argo CLI or argo UI (to argo-server), not the kubectl (to kube-apiserver).

s.Given().
WorkflowTemplate("@testdata/workflow-template-with-resource-expr.yaml").
When().
CreateWorkflowTemplates().
Copy link
Contributor

@maxsxu maxsxu Apr 24, 2023

Choose a reason for hiding this comment

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

It seems the CreateWorkflowTemplates is not a qualified test case as it submit WorkflowTemplate to kube-apiserver not argo-server, so it cannot cover this PR's scenario.

So it might be better to add this test case to the argo_server_test or cli_test unit?

@terrytangyuan terrytangyuan merged commit 8dbdc02 into argoproj:master Apr 24, 2023
terrytangyuan pushed a commit that referenced this pull request May 25, 2023
…ate. Fixes #10924 (#10926)

Signed-off-by: Alexander Crow <acrow@akamai.com>
JPZ13 pushed a commit to pipekit/argo-workflows that referenced this pull request Jul 4, 2023
dpadhiar pushed a commit to dpadhiar/argo-workflows that referenced this pull request May 9, 2024
…ate. Fixes argoproj#10924 (argoproj#10926)

Signed-off-by: Alexander Crow <acrow@akamai.com>
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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unquoted expressions in WorkflowTemplate resource manifest fail validation
5 participants