-
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
"argo template lint" errors on missing arguments #6044
Comments
Is this a regression? |
I have not used the tool before, so I wouldn't know. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
It's not stale. |
I looked into this some, so here are my thoughts. Jump to the bottom for a conclusion and follow-up question. Starting from a simple
If I remove the value for
For a
But if I remove the argument value, it fails.
For a workflow template that has defined argument values, I can still submit overrides for any parameters. The question is whether it is valid for a workflow template to exist that does not have values defined for its arguments. The current implementation says no, arguments for templates must always have accompanying values. Since a @alexec, I'd be willing to open a pull request for this (provided I can figure out where to start 😄). |
As I started looking through the code, this comment appears to indicate that this lint behavior is a regression.
|
I have opened a draft pull request to fix this issue at #7124, though I cannot get CI/Lint to pass for an unknown reason. I left a message at https://cloud-native.slack.com/archives/C020XM04CUW/p1635817253027600, but I'm not sure where to go from here. |
Got the lint error resolved. PR is open. |
Here's what happens:
My workflow template starts with this:
First of all, there's no flag to pass parameters to the linter to make it pass.
Second of all, how does that error make any sense? The arguments to the template doesn't matter to linting. Those arguments can be anything at runtime, so they cannot possibly be linted.
Is
argo template lint
intended for some other use case than linting workflow templates?Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.
The text was updated successfully, but these errors were encountered: