Repository navigation
Description
Today to specify a task config file and override things like params and inputs, you do:
- get: concrete-input
- task: foo
file: input/foo.yml
config:
params: {FOO: 1}
inputs:
- name: concrete-input
path: generic-inputThis is all well and good but things get weird when we add more things to task configs. For example, we don't override outputs since we're not sure what would even mean. Turns out we do support overriding inputs, which is done via a wholesale merge, and is occasionally used to remap a generic input name to a concrete one, while preserving the path.
It's also weird that config contains essentially a partially instantiated task config, meaning if config and file are both present, it doesn't have to be valid, but if only config is present, it has to be valid.
Today we merge the following fields:
platform- not sure why, seems like the task.ymlshould know this ahead of timeimage- same, don't know when you'd want to override thisparams- the most common use case (passing in secrets via pipeline config)inputs- this is used for remapping input names while preserving the path expected by the.yml, but it feels pretty inelegantrun.path- also not sure why this is overrideable
So, instead, we should:
- no longer allow specifying both
configandfile - expect
configto always be a fully-defined task config, if specified - no longer support overriding
platform,image,inputs, andrun.path - promote
paramsto a separate field (maybe just reuseparamsand ensure the values are always strings on ataskstep) - add configuration for remapping task inputs by name, e.g.
input_names: {generic-name: concrete-name}
Additionally folks have tried overriding outputs, similar to how we support overriding inputs, but that's just not implemented (part of the risk of overloading task config). We could add an output_names mapping similar to input_names mentioned above.
The full result would be something like:
- get: concrete-input
- task: foo
file: input/foo.yml
params: {FOO: 1}
input_names: {generic-input: concrete-input}
output_names: {generic-output: concrete-output}
Activity
concourse-bot commentedon Feb 16, 2016
Hi there!
We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.
The current status is as follows:
input_mappingandoutput_mapping(or some other better names) on ataskstep allows remapping task input and output names within the planparamson ataskstep merges into the task config's paramsfileorconfigshould be valid on a Task stepThis comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.
bump a *bunch* of dependencies
jama22 commentedon Jul 25, 2017
Hey there!
We're automatically closing this issue since the original poster (or another commenter) hasn't been active in the past six months. We therefore assume that this issue has been lost or resolved on its own. Close issues that remain inactive for a long period may get automatically locked.
Don't worry though; if this is in error, let us know with a comment and we'll be happy to reopen the issue.
Thanks!
ci: squash deprecation warning
bump atc go-concourse worker