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
[opsrc] Fix OperatorSource reconciliation error #103
[opsrc] Fix OperatorSource reconciliation error #103
Conversation
46e2b52
to
33241f9
Compare
@kevinrizza @aravindhp take a look when you have time. |
@@ -95,6 +95,8 @@ func (r *configuringReconciler) Reconcile(ctx context.Context, in *v1alpha1.Oper | |||
} | |||
|
|||
cscExisting.EnsureGVK() | |||
cscExisting.RemoveOwner(in.GetUID()) |
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.
Please add a comment mentioning why you are removing the owner. Looks good to me otherwise.
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.
@aravindhp done
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
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.
@tkashem please link to the bugzilla in the commit and PR message.
/lgtm |
/retest |
1 similar comment
/retest |
/approve |
/approve cancel |
OperatorSource reconciler fails in 'Configuring' phase if the following conditions are true: - The CatalogSourceConfig object already exists. - It is already owned by the OperatorSource object. The reconciler appends the OperatorSource object to the OwnerReference list of the CatalogSourceConfig without checking whether it is already owned by the same OperatorSource. This causes the Update API to throw an error. Solution: Remove the given OperatorSource object from the OwnerReference list to ensure it is not specified more than once https://bugzilla.redhat.com/show_bug.cgi?id=1672701
/approve |
@aravindhp @kevinrizza updated the commit with bugzilla link, can I have |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tkashem 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 |
/lgtm |
/test e2e-aws-operator |
/retest e2e-aws |
/test e2e-aws |
/test e2e-aws |
2 similar comments
/test e2e-aws |
/test e2e-aws |
OperatorSource reconciler fails in 'Configuring' phase if the
following conditions are true:
The reconciler appends the OperatorSource object to the
OwnerReference list of the CatalogSourceConfig without checking
whether it is already owned by the same OperatorSource. This causes
the Update API to throw an error.
Solution: Remove the given OperatorSource object from the
OwnerReference list to ensure it is not specified more than once.
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1672701.