-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Conversation
…ate. Fixes argoproj#10924 Signed-off-by: Alexander Crow <acrow@akamai.com>
Signed-off-by: Alexander Crow <acrow@akamai.com>
There was a problem hiding this 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(). |
There was a problem hiding this comment.
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?
…ate. Fixes argoproj#10924 (argoproj#10926) Signed-off-by: Alexander Crow <acrow@akamai.com>
…ate. Fixes argoproj#10924 (argoproj#10926) Signed-off-by: Alexander Crow <acrow@akamai.com> Signed-off-by: Dillen Padhiar <dillen_padhiar@intuit.com>
Fixes #10924