-
Notifications
You must be signed in to change notification settings - Fork 233
MGMT-20233: Recompute operator dependencies after discovering the hosts #7524
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
base: master
Are you sure you want to change the base?
MGMT-20233: Recompute operator dependencies after discovering the hosts #7524
Conversation
Currently operator dependencies are only calculated when a cluster is created or updated. But certain dependencies are dynamic, and may change when new hosts are added. For example, if a cluster has the OpenShift AI operator installed, it will also require the NVIDIA GPU operator only if there are hosts that have NVIDIA GPUs. To support those dynamic dependencies this patch modifies the cluster monitor so that it recalculates the operator dependencies before checking validations. Signed-off-by: Juan Hernandez <[email protected]> (cherry picked from commit 5371230)
@pastequo: This pull request references MGMT-20233 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.19.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pastequo 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 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7524 +/- ##
==========================================
+ Coverage 67.29% 67.87% +0.57%
==========================================
Files 334 335 +1
Lines 42293 43541 +1248
==========================================
+ Hits 28461 29553 +1092
- Misses 11258 11392 +134
- Partials 2574 2596 +22
🚀 New features to boost your workflow:
|
1aaf644
to
99ad9fb
Compare
/retest |
/retest-required |
1 similar comment
/retest-required |
* Run all db changes within a transaction * Call to EnsureOperatorPrerequisite
99ad9fb
to
a34aedc
Compare
@pastequo: This pull request references MGMT-20233 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.19.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
@pastequo: This pull request references MGMT-20233 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.19.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
/retest |
/retest-required |
4 similar comments
/retest-required |
/retest-required |
/retest-required |
/retest-required |
/lgtm |
/retest-required |
/retest |
/retest-required |
/hold Revision a34aedc was retested 3 times: holding |
/retest |
/unhold |
@pastequo: The following test failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
Reopening #7227
cc @jhernand
Also adding
At first I added some logic to
but I removed it since it's already done in the HostStateMonitor
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Was tested locally with others changes to have a single openshift AI bundle that add/remove nvidia or amd operator based on the host inventory during the discovery
Checklist
docs
, README, etc)Reviewers Checklist