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
Remove StorageClusterInitialization #789
Remove StorageClusterInitialization #789
Conversation
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
be72df1
to
e7b55fc
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.
General direction looks great.
First thing that caught my eye: ReconcileStratery ...
| @@ -25,6 +25,10 @@ import ( | |||
| "sigs.k8s.io/controller-runtime/pkg/reconcile" | |||
| ) | |||
|
|
|||
| // ReconcileStratery is a string representing how we want to reconcile | |||
| // (or not) a particular resource | |||
| type ReconcileStratery string | |||
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.
s/ReconcileStatery/ReconcileStrategy/ everywhere?
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.
HAH! At least the typo was consistent ;D Fixed.
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.
yeah, it built...
This commit removes the need for a StorageClusterInitialization CR by replacing it with a set of strings to controll the reconciliation of previously initialized CRs. This changes the behavior for reapplying the initialization, requiring the admin to set each resource's strategy to "manage", wait for reconciliation, then back to "" or "default". Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
e7b55fc
to
c23a782
Compare
|
@jarrpa: The following tests failed, say
Full PR test history. Your PR dashboard. 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/test-infra repository. I understand the commands that are listed here. |
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
thanks for the update
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: obnoxxx 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 |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/cherrypick release-4.6 |
|
@jarrpa: #789 failed to apply on top of branch "release-4.6": 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/test-infra repository. |
We want finer control over which resources we reconcile and which we don't. This PR removes the need for a StorageClusterInitialization CR by implementing a set of string to control how a given type of resource is reconciled. The default is set to only reconcile if it doesn't exist, to maintain compatibility with current behavior on upgrade.