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

Feature/add deployment field2metadata #544

Merged
merged 4 commits into from Sep 16, 2019

Conversation

ycliuhw
Copy link
Member

@ycliuhw ycliuhw commented Sep 13, 2019

Description of change

Checklist

  • Are all your commits [logically] grouped and squashed appropriately?
  • Does this patch have code coverage?
  • Does your code pass make test?

@ycliuhw ycliuhw force-pushed the feature/add-deployment-field2metadata branch from 7f92797 to ac52e8d Compare September 13, 2019 04:36
'daemonset': bool,
'min-version': str,
}
for k, v in deployment.items():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we also validate the allowed service types?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, changed the whole implementation and ensures this case now.

wallyworld
wallyworld previously approved these changes Sep 13, 2019
Copy link
Member

@wallyworld wallyworld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a validation check for the allowed service types (and a test).

@wallyworld wallyworld merged commit 4139c90 into juju:master Sep 16, 2019
@ycliuhw ycliuhw deleted the feature/add-deployment-field2metadata branch September 16, 2019 15:38
timClicks pushed a commit to timClicks/charm-tools that referenced this pull request May 6, 2020
* Add 'deployment' field support in metadata.yaml

* Add tests;

* Change to use colander.MappingSchema to do validation on deployment;

* Add tests for unsupported deployment.service, deployment.type;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants