-
Notifications
You must be signed in to change notification settings - Fork 544
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
Don't sync namespaces that have no subscriptions #3054
Don't sync namespaces that have no subscriptions #3054
Conversation
Problem: The catalog operator is logging many errors regarding missing operator groups in namespaces that have no operators installed. Solution: If a namespace has no subscriptions in it, do not check if an operator group is present in the namespace. Signed-off-by: Alexander Greene <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: awgreene 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 |
This seems reasonable, but one question: What happens with a subscription shows up? When we're reconciling that subscription, are we assuming that we've already synced the OperatorGroups? If so, do we then put an error on the subscription along the lines of "there's no operator group in this namespace"? And if we do that, is that a terminal state, or will we pretty quickly sync operator groups and then re-sync the subscription? |
@joe currently there is no subscription status conveying that an operatorGroup is missing, but the catalog operator would log the error.
When the Catalog Operator reconciles a subscription it will add the namespace to the queue which is reconciled using the logic in the syncNamespace function. Likewise, if an operatorGroup is created it will queue namespaces as well. So yes, it will recover quickly. |
@joelanford we had a downstream bug that called out that it'd be nice if the sub exposed this information, but we closed it as we are directing efforts to working on OLM V1. If we feel strongly that OLM V0 should expose this outside of the logs, we can reopen that issue. |
Since the queueing logic was happening before by iterating over subs, this seems like it should not change any behavior, just stop logging errors. |
/lgtm |
2625ded
Problem: The catalog operator is logging many errors regarding missing operator groups in namespaces that have no operators installed.
Solution: If a namespace has no subscriptions in it, do not check if an operator group is present in the namespace.
Example Logs: