-
Notifications
You must be signed in to change notification settings - Fork 545
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 OperatorCondition status sync and update operator upgradeable check #2160
Add OperatorCondition status sync and update operator upgradeable check #2160
Conversation
@dinhxuanvu: This pull request references Bugzilla bug 1927340, which is invalid:
Comment In response to this:
Instructions 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. |
The BZ bot will automatically move the BZ state to POST once this PR lands but we only want that behavior for downstream PRs. I'm going to add a link to the BZ in your PR description instead. /retitle Add OperatorCondition status sync and update operator upgradeable check |
@dinhxuanvu: No Bugzilla bug is referenced in the title of this pull request. In response to this:
Instructions 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. |
The proposal: https://hackmd.io/9wG20hu5TU-y1HrkhvcsZQ?view FYI |
ea0767c
to
99861b9
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.
Please remove the FIT
test, looks good otherwise.
f5c2fc0
to
2cda4a0
Compare
d24c663
to
537a9a3
Compare
8ac44ee
to
faa73fe
Compare
OperatorCondition controller will update its status to refect the changes on its spec regarding the operator conditions that are reported by the operators themselves. In turn, operators can read the status to confirm if OLM has processed the spec changes. OLM will not take actions on upgradeable condition if the status is stale using ObservedGeneration and Generation check. Signed-off-by: Vu Dinh <vudinh@outlook.com>
1. Operator can create/update/patch OperatorCondition but not its status. 2. Update the e2e test case to update OperatorCondition's spec directly instead of its status Signed-off-by: Vu Dinh <vudinh@outlook.com>
1. Update codegen to generate operatorv2 client code 2. Vendor operator-framework/api 0.9.0 3. Adopt the new changes on OperatorCondition API from api repo. 4. Update OperatorCondition v2 references across the codebase 5. Update e2e test case for OperatorCondition Signed-off-by: Vu Dinh <vudinh@outlook.com>
@ecordell PTAL |
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.
A few nits, but it looks great!
Overall this all looks good to me, most of the points I raised are nits so I'll add the /approve label. |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: 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 |
/cherry-pick release-4.7 |
@dinhxuanvu: #2160 failed to apply on top of branch "release-4.7":
In response to this:
Instructions 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. |
OperatorCondition controller will update its status to refect the
changes on its spec regarding the operator conditions that are reported
by the operators themselves. In turn, operators can read the status
to confirm if OLM has processed the spec changes.
OLM will not take actions on upgradeable condition if the status is
stale using ObservedGeneration and Generation check.
Signed-off-by: Vu Dinh vudinh@outlook.com
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1927340.
Description of the change:
Motivation for the change:
Reviewer Checklist
/doc