Skip to content
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

Support constraints on job instances (probably by making instance_definition configurable) #311

Open
mboldt opened this issue Jun 14, 2019 · 1 comment

Comments

@mboldt
Copy link
Contributor

mboldt commented Jun 14, 2019

We have a tile that requires the number of instances of a job to be exactly 1. The instance count is currently hardcoded to be configurable in tile-generator

instance_def = {
'configurable': True,
'default': job.get('instances', 1),
'name': 'instances',
'type': 'integer'
}
if job.get('singleton') or job.get('lifecycle') == 'errand':
instance_def['configurable'] = False
instance_def['default'] = 1
if self.config['metadata_version'] < 1.7:
bosh_release_job['instance_definitions'] = [instance_def]
else:
bosh_release_job['instance_definition'] = instance_def

We should probably just expose the instance_definintion as something the tile author can set.

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants