-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Expand Task Param fields #190
Comments
@bobcatfish I'll tackle this one. |
This commit adds the `Description` and `Default` fields to the TaskParams object. Description is a mandatory field to be used for describing what the Param is. Default is optional, and may be used to specify a default value for the param. Adding these fields will make the pipeline easier to understand. Also fixes a bug in `resources.AddInputResources` where if the Task has Inputs defined, AddInputResources assumes there *must* be one of type GitResource, which is not necessarily the case. Fixes tektoncd#190
Thanks @tanner-bruce ! And like you were saying in slack, I wonder if we should add a |
@bobcatfish want to do that as a separate issue? Seems like it warrants a discussion about syntax/implementation. I filed #207 for design around an Array type in params |
This commit adds the `Description` and `Default` fields to the TaskParams object. Description is a mandatory field to be used for describing what the Param is. Default is optional, and may be used to specify a default value for the param. Adding these fields will make the pipeline easier to understand. Also fixes a bug in `resources.AddInputResources` where if the Task has Inputs defined, AddInputResources assumes there *must* be one of type GitResource, which is not necessarily the case. Fixes tektoncd#190
This commit adds the `Description` and `Default` fields to the TaskParams object. Description is a mandatory field to be used for describing what the Param is. Default is optional, and may be used to specify a default value for the param. Adding these fields will make the pipeline easier to understand. Also fixes a bug in `resources.AddInputResources` where if the Task has Inputs defined, AddInputResources assumes there *must* be one of type GitResource, which is not necessarily the case. Fixes tektoncd#190
This commit adds the `Description` and `Default` fields to the TaskParams object. Description is a mandatory field to be used for describing what the Param is. Default is optional, and may be used to specify a default value for the param. Adding these fields will make the pipeline easier to understand. Also fixes a bug in `resources.AddInputResources` where if the Task has Inputs defined, AddInputResources assumes there *must* be one of type GitResource, which is not necessarily the case. Fixes tektoncd#190
This commit adds the `Description` and `Default` fields to the TaskParams object. Description is a mandatory field to be used for describing what the Param is. Default is optional, and may be used to specify a default value for the param. Adding these fields will make the pipeline easier to understand. Also fixes a bug in `resources.AddInputResources` where if the Task has Inputs defined, AddInputResources assumes there *must* be one of type GitResource, which is not necessarily the case. Fixes tektoncd#190
This commit adds the `Description` and `Default` fields to the TaskParams object. Description is a mandatory field to be used for describing what the Param is. Default is optional, and may be used to specify a default value for the param. Adding these fields will make the pipeline easier to understand. Also fixes a bug in `resources.AddInputResources` where if the Task has Inputs defined, AddInputResources assumes there *must* be one of type GitResource, which is not necessarily the case. Fixes tektoncd#190
This commit adds the `Description` and `Default` fields to the TaskParams object. Description is a mandatory field to be used for describing what the Param is. Default is optional, and may be used to specify a default value for the param. Adding these fields will make the pipeline easier to understand. Also fixes a bug in `resources.AddInputResources` where if the Task has Inputs defined, AddInputResources assumes there *must* be one of type GitResource, which is not necessarily the case. Fixes tektoncd#190
This commit adds the `Description` and `Default` fields to the TaskParams object. Description is a mandatory field to be used for describing what the Param is. Default is optional, and may be used to specify a default value for the param. Adding these fields will make the pipeline easier to understand. Also fixes a bug in `resources.AddInputResources` where if the Task has Inputs defined, AddInputResources assumes there *must* be one of type GitResource, which is not necessarily the case. Fixes #190
Thanks again @tanner-bruce ! ❤️ |
Expected Behavior
Tasks should be reusable. When you look at a Task, it should be clear how to use it, specifically how to provide the right parameters and what they are. There should also be defaults for parameters, i.e. each Param should look like this:
Please also update examples.
Actual Behavior
Currently Task Params have only one field:
name
.Additional Info
See knative build template docs.
Question: perhaps we want this functionality for resources as well?
The text was updated successfully, but these errors were encountered: