-
Notifications
You must be signed in to change notification settings - Fork 179
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
Migrate controllers to reconcile v1alpha1.ScyllaDBDatacenter #2066
Migrate controllers to reconcile v1alpha1.ScyllaDBDatacenter #2066
Conversation
@zimnx: GitHub didn't allow me to request PR reviews from the following users: zimnx. Note that only scylladb members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
0a7024d
to
51feef6
Compare
e8766e4
to
b3f1f6f
Compare
7aed2b1
to
a0f75de
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
/assign tnozicka
9ebba10
to
793c71d
Compare
7e490f2
to
35129c9
Compare
35129c9
to
b9dacb5
Compare
…ScyllaDBDatacenter Most controllers which were working on v1.ScyllaCluster are migrated to use v1alpha1.ScyllaDBDatacenter. Except one which provide features not available yet in new API (Scylla Manager integration). New controller is responsible for releasing objects managed by current ScyllaCluster and migrating existing ScyllaClusters to ScyllaDBDatacenter. Released resources are adopted by the new ScyllaDBDatacenter object. Most of the work is based on [this proposal](https://github.com/scylladb/scylla-operator/blob/master/enhancements/proposals/1978-scylladbdatacenter-api/README.md). During implementation I found that ScyllaDB version upgrades weren't covered in the proposal. Previous implementation kept state of upgrade state machine within ScyllaCluster Status, where new API doesn't have it. Instead spoiling new API with it, upgrade state machine was changed to keep its state as a ConfigMap. Migrating controller is aware of it, and migrates the state before ScyllaDBDatacenter is created to make sure it's being picked up by changed ScyllaDBDatacenter controller.
bb2a464
to
1c4e463
Compare
1c4e463
to
128682d
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rzetelskik, tnozicka, zimnx The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Most controllers which were working on v1.ScyllaCluster are migrated to use v1alpha1.ScyllaDBDatacenter.
Except one which provide features not available yet in new API (Scylla Manager integration).
New controller is responsible for releasing objects managed by current ScyllaCluster and migrating existing ScyllaClusters to ScyllaDBDatacenter.
Released resources are adopted by the new ScyllaDBDatacenter object.
Most of the work is based on this proposal.
During implementation I found that ScyllaDB version upgrades weren't covered in the proposal. Previous implementation kept state of upgrade state machine within ScyllaCluster Status, where new API doesn't have it.
Instead spoiling new API with it, upgrade state machine was changed to keep its state as a ConfigMap.
Migrating controller is aware of it, and migrates the state before ScyllaDBDatacenter is created to make sure it's being picked up by changed ScyllaDBDatacenter controller.
Fixes #2038