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
Add OLM support for the Upgradeable OperatorCondition and Admin overrides #1885
Add OLM support for the Upgradeable OperatorCondition and Admin overrides #1885
Conversation
934fd4c
to
9295579
Compare
c8eeb8c
to
bbe89b4
Compare
Don't we also want something that can prevent the resolver from looking for updates if an operator is not upgradable? |
We talked about this (Ben asked about this) and we agreed that at this point we don't want the resolver to be involved into this. This is meant to be a separate part from the resolver and it simply prevents the operator proceed to Succeeded state but not blocking the entire resolution altogether. |
dbf0611
to
02ca349
Compare
/retest |
1 similar comment
/retest |
/hold |
/hold cancel |
b393e4d
to
e3f09a9
Compare
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.
Great work @dinhxuanvu !
e3f09a9
to
a7551c1
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: awgreene, dinhxuanvu 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 |
a7551c1
to
f9ff01a
Compare
2fab671
to
c1506cf
Compare
/retest |
1 similar comment
/retest |
cb1fe22
to
b35528a
Compare
/lgtm |
OLM will check for OperatorCondition CR for OperatorUpgradeable status. The pending CSV will not transition to Succeeded status until the operator is upgradeable based on the OperatorCondition. If the operator doesn't use OperatorCondition, the normal transition is expected. Cluster Admin will be able to override the OperatorUpgradeable condition. Add an e2e test for OperatorUpgradeable condition. OLM will check for replacedCSV's Upgradeable condition to ensure the new CSV is able to be upgraded. If the previous condition is False, the new CSV will stay in Pending to prevent the deployment to be installed. Signed-off-by: Vu Dinh <vdinh@redhat.com>
b35528a
to
abaf218
Compare
/lgtm |
/retest |
2 similar comments
/retest |
/retest |
/QE-approved |
Description of the change:
OLM will check for OperatorCondition CR for OperatorUpgradeable status.
The pending CSV will not transition to Succeeded status until the operator
is upgradeable based on the OperatorCondition. If the operator doesn't use
OperatorCondition, the normal transition is expected.
Signed-off-by: Vu Dinh vdinh@redhat.com
Motivation for the change:
Reviewer Checklist
/docs