add OperatorGroup reconciliation#2517
add OperatorGroup reconciliation#2517akihikokuroda wants to merge 1 commit intooperator-framework:masterfrom
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. DetailsNeeds 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. DetailsInstructions 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
| } | ||
|
|
||
| func (o *Operator) syncOperatorGroup(obj interface{}) (syncError error) { | ||
| // Assert as metav1.Object |
There was a problem hiding this comment.
Nit - I don't think this comment adds any value.
There was a problem hiding this comment.
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.
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.
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 <akihikokuroda2020@gmail.com>
e13258f to
7552fa8
Compare
|
/hold |
|
PR needs rebase. DetailsInstructions 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 akihikokuroda2020@gmail.com
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