Skip to content
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

[resolution pt.7] resolver integration #101

Conversation

perdasilva
Copy link
Contributor

@perdasilva perdasilva commented Jan 24, 2023

This PR integrates the solver with the reconciler. It also update the Operator API to include a BundlePath on Operator.Status

@perdasilva perdasilva force-pushed the resolution_pt7_resolver_integration branch 2 times, most recently from 3c860df to 36c8a56 Compare January 24, 2023 18:04
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 26, 2023
@perdasilva perdasilva force-pushed the resolution_pt7_resolver_integration branch from 36c8a56 to 3e231aa Compare January 26, 2023 13:07
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 26, 2023
Copy link
Member

@awgreene awgreene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, great work @perdasilva!

Comment on lines +130 to +142
for _, operator := range operatorList.Items {
apimeta.SetStatusCondition(&operator.Status.Conditions, metav1.Condition{
Type: operatorsv1alpha1.TypeReady,
Status: status,
Reason: reason,
Message: message,
ObservedGeneration: op.GetGeneration(),
})
if varID, ok := packageVariableIDMap[operator.Spec.PackageName]; ok {
operator.Status.BundlePath = varID
}
if err := r.Client.Status().Update(ctx, &operator); err != nil {
return ctrl.Result{}, err
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to consider if we should update each of the operator CR's status here or if we should just retrigger the reconciler for each of them.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll follow this up with another PR where I update deppy and how we handle the Solution struct changes

Signed-off-by: perdasilva <perdasilva@redhat.com>
Signed-off-by: perdasilva <perdasilva@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants