-
Notifications
You must be signed in to change notification settings - Fork 541
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 system constraint provider logic to resolver #2523
Add system constraint provider logic to resolver #2523
Conversation
2cc9ee1
to
0a4119e
Compare
I put a fix for the e2e error in #2517 |
/hold until #2418 is merged and this had been rebased |
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.
@perdasilva I can see the commit here that modifies the kubeconfig flag. Should that be a separate PR if it's not related to what the PR title/summary talks about, unless it's absolutely necessary for that commit to be in this PR?
Also, is the downstream PR ready? It's hard to grasp how the init
hook will be used or what code changes here are motivated by the eventual downstream code changes without looking at that code beside this.
d5f2f1f
to
0a4119e
Compare
@anik120 |
0a4119e
to
fd9577f
Compare
/unhold |
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.
Looking good. A few comments.
fd9577f
to
65abbfd
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: njhale, perdasilva 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 |
65abbfd
to
6df70ce
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 @perdasilva
/lgtm
6df70ce
to
0a41b22
Compare
/lgtm |
/retest |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
3 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest |
…r init hooks Signed-off-by: Per G. da Silva <perdasilva@redhat.com>
0a41b22
to
25e15a8
Compare
/lgtm |
/retest |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
3 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
4 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
Signed-off-by: Per G. da Silva perdasilva@redhat.com
Description of the change:
This PR adds a
systemConstraintsProvider
to theresolver
. It also modifies the resolver to apply any constraints comming from thesystemContraintsProvider
. Secondly, it addinitHooks
to theOperatorStepResolver
. This allows the downstream to modify resolver behaviour.Motivation for the change:
For 4.10 we'd like to have a way for the resolver to respect the
maxOpenShiftVersion
property that can be provided by bundles to ensure that operator supports the cluster onto which it is being installed. This is done by injecting an OpenShiftsystemConstraintsProvider
into thesatResolver
using aninitHook
on the downstream.The init hooks provide a lightweight way of doing this from downstream without affecting the upstream or providing (in the upstream) a way for users to reach the
systemConstraintsProvider
. At least until we want to open this more generally.Note: This PR must be merged sync'ed with the downstream before the downstream PR can be cut
Reviewer Checklist
/doc