Skip to content
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

KSPACE-46: Use SpaceProvisionerConfig for space placement decisions #991

Merged

Conversation

metlos
Copy link
Contributor

@metlos metlos commented Mar 14, 2024

This changes the logic in pkg/capacity/manager.go to use the configuration from the SpaceProvisionerConfig objects instead of the configuration in the ToolchainConfig.

Note that e2e tests are not passing yet, so this must not be merged atm.

JIRA issue: https://issues.redhat.com/browse/KSPACE-46

Associated PRs in other repos:

Copy link
Contributor

@MatousJobanek MatousJobanek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice & clean code 👍
just a few minor suggestions/questions, nothing critical

controllers/usersignup/usersignup_controller_test.go Outdated Show resolved Hide resolved
controllers/usersignup/usersignup_controller_test.go Outdated Show resolved Hide resolved
pkg/capacity/manager.go Outdated Show resolved Hide resolved
pkg/capacity/manager_test.go Outdated Show resolved Hide resolved
pkg/capacity/manager_test.go Show resolved Hide resolved
Copy link
Contributor

@MatousJobanek MatousJobanek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍
Great job 🥇 🚀 Thanks also for addressing all my comments 🙏

Copy link

openshift-ci bot commented Mar 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: MatousJobanek, metlos

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
12.5% Duplication on New Code

See analysis details on SonarCloud

@MatousJobanek
Copy link
Contributor

@metlos Let's wait with the merge till Monday morning, so we have some time to check and monitor that everything is working fine in production.
/hold

Copy link

codecov bot commented Mar 22, 2024

Codecov Report

Merging #991 (a324484) into master (547d334) will increase coverage by 0.12%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #991      +/-   ##
==========================================
+ Coverage   84.75%   84.87%   +0.12%     
==========================================
  Files          55       55              
  Lines        5039     5066      +27     
==========================================
+ Hits         4271     4300      +29     
+ Misses        584      583       -1     
+ Partials      184      183       -1     
Files Coverage Δ
controllers/toolchainconfig/configuration.go 92.10% <100.00%> (+0.05%) ⬆️
pkg/capacity/manager.go 98.09% <100.00%> (+3.15%) ⬆️

@metlos metlos merged commit de95481 into codeready-toolchain:master Mar 22, 2024
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants