-
Notifications
You must be signed in to change notification settings - Fork 253
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
Unable to start task with -f flag if the task definition file contains params with no default value #959
Comments
/assign |
The params will be on the TaskSpec in this case as opposed to the TaskRunSpec, which is causing the issue: Line 323 in f7706b5
|
This also affects Line 270 in f7706b5
|
I tried with the older version of Pipeline and CLI, seems like an existing issue. |
@pradeepitm12 Yes, I think this was missed from the original implementation of this. |
Close #959 This fixes task start with file command. Note: to start a task from file params needs to have its type speficed, in case of existing task in cluster type is appended by the controller. Signed-off-by: Pradeep Kumar <[email protected]>
Version and Operating System
tkn Version:
v0.9.0
Operating System:
All
Expected Behavior
Taskrun should get created
Actual Behavior
The command is throwing the error
Error: param 'test-param' not present in spec
Steps to Reproduce the Problem
tkn task start -f <yaml file> -p <param name>=<param value>
Additional Info
Below are command logs
The text was updated successfully, but these errors were encountered: