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

Add support for default pools for env providers #9

Merged
merged 2 commits into from
Jan 27, 2015

Conversation

wallyworld
Copy link
Owner

There's now a registry of default pools for environment types.
If storage is specified without a pool, the default is used.

conf, err := st.EnvironConfig()
if err != nil {
return errors.Trace(err)
conf, err := st.EnvironConfig()
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks fine for now, though I think we should rework this later so that state is not calling into the storage package. It would be better if we made these sorts of decisions in the API server code. Validation is tricky, and probably means extending the policy code.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Agreed. Rework definitely needed. I felt dirty for sure, but it was expedient.

@axw
Copy link
Collaborator

axw commented Jan 27, 2015

Possible simplification re cons.Pool != "" check, but otherwise LGTM.

wallyworld added a commit that referenced this pull request Jan 27, 2015
Add support for default pools for env providers
@wallyworld wallyworld merged commit f839b7a into storage-feature Jan 27, 2015
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.

2 participants