-
Notifications
You must be signed in to change notification settings - Fork 562
add OperatorGroup reconciliation #2517
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
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: akihikokuroda The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @akihikokuroda. Thanks for your PR. I'm waiting for a operator-framework member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
048f8b0
to
5cce51b
Compare
5cce51b
to
fd3c0d1
Compare
Hey @akihikokuroda thanks for this! Would it be possible to add unit tests at all? |
@perdasilva Thanks for comment. I'll look into what unit test needs for this change. |
a4dfccb
to
4819199
Compare
I added a small unit test for operatorgroup sync. |
b94df46
to
eb082c9
Compare
return o.triggerInstallPlanRetry(obj) | ||
} | ||
|
||
func (o *Operator) syncOperatorGroup(obj interface{}) (syncError error) { | ||
// Assert as metav1.Object |
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.
Nit - I don't think this comment adds any value.
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.
Thanks! I'll take it out.
out := ip.DeepCopy() | ||
out.Status.Phase = v1alpha1.InstallPlanPhaseInstalling | ||
now := o.now() | ||
out.Status.SetCondition(v1alpha1.ConditionFailed(v1alpha1.InstallPlanInstalled, v1alpha1.InstallPlanReasonComponentFailed, "OperatorGroup updated", &now)) |
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.
Is this the right condition to add? If we are re-triggering the installPlan I don't think a component failed anymore.
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.
I see. That's right. I'll change to ConditionMet. Thanks!
9c4627a
to
4dcb48b
Compare
/hold |
I saw this panic. It's probably unrelated the changes in this PR so far but I add some code to prevent this in this PR. This panic causes the same e2e failure.
|
0409a45
to
00be3ce
Compare
/unhold |
b6213fa
to
7d7f77d
Compare
e25638f
to
ef0bfd8
Compare
b050ace
to
e13258f
Compare
Signed-off-by: akihikokuroda <[email protected]>
e13258f
to
7552fa8
Compare
/hold |
PR needs rebase. 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. |
@akihikokuroda could you please resolve conflicts? |
closing PR as stale. Please re-open if it's still important. |
Signed-off-by: akihikokuroda [email protected]
Description of the change:
Add OperatorGroup reconciliation in Catalog operator so that the operator group creation can trigger InstallPlan sync.
Motivation for the change:
Closes #2516
Reviewer Checklist
/doc