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

Issue 81: Support rolling upgrades #124

Merged
merged 32 commits into from
Apr 5, 2019
Merged

Conversation

adrianmo
Copy link
Contributor

@adrianmo adrianmo commented Jan 30, 2019

Change log description

  • Controller: implement cluster upgrade (upgrade process is described in doc/cluster_upgrade.md)
  • Controller: apply configuration based on the Pravega version (e.g., useHostNameAsBookieID=false version < 0.5)
  • API: add new spec.version field. Updating this field will trigger an upgrade.
  • API: deprecate the use of .spec.Pravega.Image.Tag and .spec.Bookkeeper.Image.Tag to set Pravega and Bookkeeper versions. Should use .spec.Version instead, which will be used as a tag to pull images for Pravega and BookKeepre.
  • API: changes to the API are backwards compatible
  • Cluster Status: add desired version information (null when no upgrade is in progress)
  • Cluster Status: add Upgrade and Error conditions
  • E2E tests: add test case to validate upgrade process
  • Unit tests: add test cases to check version configuration
  • Unit tests: refactor operator controller tests
  • Documentation: add information about scaling a cluster
  • Documentation: create an upgrade page in doc/cluster_upgrade.md
  • Documentation: move troubleshooting information from the readme to a dedicated page indoc/troubleshooting.md

Purpose of the change

Fix #81

How to test the change

An end-to-end test case has been added to validate the upgrade process. Tests should pass.


Signed-off-by: Adrián Moreno adrian@morenomartinez.com

Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
@adrianmo adrianmo added status/work-in-progress PR work is in progress; do not merge kind/feature New feature labels Jan 30, 2019
@adrianmo adrianmo self-assigned this Jan 30, 2019
@adrianmo
Copy link
Contributor Author

Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
* master:
  Issue 10: Update cluster status (#123)
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
* master:
  Issue 64: configure bookie metrics (#122)
  Issue 106: Updating README.md (#108)
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
* master:
  Issue 130: Ability to specify container resources (#129)
  Issue 134,137: Fix BookKeeper errors (#135)
  Run tests on GKE (#140)
  Document update: README.md (#133)
  Add service account role definitions [skip ci] (#136)
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
* master:
  Fix Pravega and BookKeeper Java options (#145)
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
@adrianmo adrianmo changed the title [WiP] Issue 81: Support rolling upgrades Issue 81: Support rolling upgrades Apr 1, 2019
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
@adrianmo adrianmo added status/ready The issue is ready to be worked on; or the PR is ready to review and removed status/work-in-progress PR work is in progress; do not merge labels Apr 1, 2019
@adrianmo
Copy link
Contributor Author

adrianmo commented Apr 1, 2019

@Tristan1900 can you please have a look at the PR? Thanks!

Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
@Tristan1900
Copy link
Member

@adrianmo Thanks for updating the doc! LGTM.

Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
@adrianmo
Copy link
Contributor Author

adrianmo commented Apr 4, 2019

@Tristan1900 I'm re-requesting a review from you after the recent changes made to the PR. Thank you!

Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
Signed-off-by: Adrián Moreno <adrian@morenomartinez.com>
@adrianmo adrianmo merged commit 67c9851 into master Apr 5, 2019
@adrianmo adrianmo deleted the issue-81-upgrade-feature branch April 5, 2019 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature status/ready The issue is ready to be worked on; or the PR is ready to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants