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
MGMT-17438: bugfix, make sure ODF and LVM requirements do not change if MCE not selected #6150
Conversation
@rccrdpccl: This pull request references MGMT-17438 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 bug to target the "4.16.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. |
@rccrdpccl: GitHub didn't allow me to request PR reviews from the following users: bkopilov. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6150 +/- ##
=======================================
Coverage 68.31% 68.32%
=======================================
Files 242 242
Lines 35817 35824 +7
=======================================
+ Hits 24470 24475 +5
+ Misses 9221 9219 -2
- Partials 2126 2130 +4
|
It feels to me like the answer isn't to reset this, but to not do it in the first place. Is that an option? |
I'll try to think something, the main issue is that I do not want to make aware MCE (or any other operator) of other operators, that would cause a mess of dependencies. |
6fc61d2
to
4e60632
Compare
The change aims to pass to additional requirements when that can be understood only from the manager when validating the hosts. In this instance the additional disk requirement is only when a combinations of operators are activated. |
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.
Looks good other than that name.
internal/operators/api/api.go
Outdated
@@ -38,7 +38,7 @@ type Operator interface { | |||
// ValidateCluster verifies whether this operator is valid for given cluster | |||
ValidateCluster(ctx context.Context, cluster *common.Cluster) (ValidationResult, error) | |||
// ValidateHost verifies whether this operator is valid for given host | |||
ValidateHost(ctx context.Context, cluster *common.Cluster, hosts *models.Host) (ValidationResult, error) | |||
ValidateHost(ctx context.Context, cluster *common.Cluster, hosts *models.Host, interOperatorRequirements *models.ClusterHostRequirementsDetails) (ValidationResult, error) |
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.
Maybe name this just additionalOperatorRequirements
?
I could see this being useful for other runtime stuff that might come up.
…if MCE is not selected Signed-off-by: Riccardo Piccoli <rpiccoli@redhat.com>
4e60632
to
1f40608
Compare
@rccrdpccl: all tests passed! 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/test-infra repository. I understand the commands that are listed here. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: carbonin, rccrdpccl 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 |
[ART PR BUILD NOTIFIER] This PR has been included in build ose-agent-installer-api-server-container-v4.16.0-202404051041.p0.g484ec5c.assembly.stream.el8 for distgit ose-agent-installer-api-server. |
/cherry-pick cloud_hotfix_releases |
@rccrdpccl: new pull request created: #6160 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. |
When selecting MCE and ODF we will add additional storage requirements to the operator singleton, which was never reset. This mean that if we install once MCE and ODF, all installations after that will keep additional requirements even if not necessary. This PR fixes this issue.
/cc @bkopilov @carbonin
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Checklist
docs
, README, etc)Reviewers Checklist