Code for creating and provisioning a bootstrap VM that assembles a few other repositories for use in automating the deployment of Pivotal Container Engine (PKS).
Other
17
stars
6
forks
source link
Generate a dynamic pipeline with tasks in swimlanes. #34
This adds a feature to generate some portion of the pipeline dynamically from a template. If, rather than a pipeline yml, you instead add a yml.j2, and provide a variable named "pipeline_scale_items" that points to another variable that is a list or dict, then the "refly" automation will generate a pipeline from the template before uploading/refreshing in concourse.
The parameters sent to the template are a list of ranges, no more than 10 by default, with a lower and upper bound (min and max). For example, with a value in the "pipeline_scale_items" variable that has 3000 items, the template will receive a structure like:
"ranges": [
{
"min": 1
"max": 300,
},
{
"min": 301
"max": 600,
},
{
"min": 601
"max": 900,
},
{
"min": 901
"max": 1200,
},
{
"max": 1500,
"min": 1201
},
{
"min": 1501
"max": 1800,
},
{
"min": 1801
"max": 2100,
},
{
"min": 2101
"max": 2400,
},
{
"min": 2401
"max": 2700,
},
{
"min": 2701
"max": 3000,
}
]
Signed-off-by: John Gardner huxoll@gmail.com
This adds a feature to generate some portion of the pipeline dynamically from a template. If, rather than a pipeline yml, you instead add a yml.j2, and provide a variable named "pipeline_scale_items" that points to another variable that is a list or dict, then the "refly" automation will generate a pipeline from the template before uploading/refreshing in concourse.
The parameters sent to the template are a list of ranges, no more than 10 by default, with a lower and upper bound (min and max). For example, with a value in the "pipeline_scale_items" variable that has 3000 items, the template will receive a structure like: "ranges": [ { "min": 1 "max": 300, }, { "min": 301 "max": 600, }, { "min": 601 "max": 900, }, { "min": 901 "max": 1200, }, { "max": 1500, "min": 1201 }, { "min": 1501 "max": 1800, }, { "min": 1801 "max": 2100, }, { "min": 2101 "max": 2400, }, { "min": 2401 "max": 2700, }, { "min": 2701 "max": 3000, } ]