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

[Proposal] Plan support #294

Merged
merged 4 commits into from Jul 24, 2017

Conversation

eriknelson
Copy link
Contributor

No description provided.

@eriknelson eriknelson changed the title Plan support proposal [Proposal] Plan support Jul 21, 2017
Copy link
Contributor

@jmrodri jmrodri left a comment

Choose a reason for hiding this comment

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

A typo and requesting another example without parameter reference. Otherwise, +1

---

3) Move any example of a `[]map[string]T` to `[]T`. The former introduced an entirely
unecessary map layer. They started to get nested after moving params onto plans and
Copy link
Contributor

Choose a reason for hiding this comment

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

TYPO: unecessary -> unnecessary


3) Move any example of a `[]map[string]T` to `[]T`. The former introduced an entirely
unecessary map layer. They started to get nested after moving params onto plans and
things got very ugly because of it. Reintroduce `name` onto `T`s.
Copy link
Contributor

Choose a reason for hiding this comment

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

+1 to reintroducing name.

title: Mediawiki Site Name
```

Should use this pattern for any additional changes moving forward.
Copy link
Contributor

Choose a reason for hiding this comment

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

+1 this make it more explicit and consistent. It also makes parsing it broker side that much easier.

## Questions

* Obviously this is a large, breaking change to **all** existing APBs and their `apb.yml` files.
How do we want to make across the board so things get rolled out as smoothly as possible?
Copy link
Contributor

Choose a reason for hiding this comment

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

I say we do the following:

  • update all the apbs in apb-examples with the new plan stuff
  • update the apb tooling so that it generates a default plan
  • rebuild all apbs after merging the above examples changes
  • merge broker and rebuild broker image
  • test it all

How do we want to make across the board so things get rolled out as smoothly as possible?
* Is this a good opportunity to have the broker start respecting the version label found on
apbs? I think it makes sense to have that in lock setup with broker release versions. Is
broker master considered `0.10` since it's `release-0.9++`?
Copy link
Contributor

Choose a reason for hiding this comment

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

The version in the ansible-service-broker rpm spec is currently 1.0.0 in master. We have not built an rpm from this spec yet so we can change it if we want to go do 0.10.0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm happy with 1.0.0 since that's likely what we will release as under GA, right?

longDescription: This plan provides a single non-HA PostgreSQL server with persistent storage
cost: $5.99 monthly
parameters: *_p
```
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice to see a simple example of not using the references so folks know you can also put the parameters inline with the plan.

displayName: PostgreSQL (APB)
console.openshift.io/iconClass: icon-postgresql
dependencies:
- postgresql_version
Copy link
Member

Choose a reason for hiding this comment

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

This is a typo, dependencies has been moved up to the metadata.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@eriknelson
Copy link
Contributor Author

@jmrodri Updated based on your feedback, +1 re: single param set example.

@eriknelson eriknelson merged commit 9beb91f into openshift:master Jul 24, 2017
@eriknelson eriknelson deleted the plans-support-changes branch July 24, 2017 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants