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

chore: cleanup deprovisioning types #289

Merged
merged 18 commits into from
May 4, 2023
Merged

Conversation

njtran
Copy link
Contributor

@njtran njtran commented Apr 11, 2023

Fixes #280

Description
Removes an the old action type in the deprovisioning controller since the type of action can be inferred from the len(candidates) to replace or len(replacements).

How was this change tested?

  • make presubmit

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@njtran njtran requested a review from a team as a code owner April 11, 2023 23:12
@njtran njtran requested a review from bwagner5 April 11, 2023 23:12
Copy link
Member

@jonathan-innis jonathan-innis left a comment

Choose a reason for hiding this comment

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

Really just one uber comment on command comparison

pkg/controllers/deprovisioning/controller.go Outdated Show resolved Hide resolved
pkg/controllers/deprovisioning/controller.go Outdated Show resolved Hide resolved
pkg/controllers/deprovisioning/types.go Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Apr 11, 2023

Pull Request Test Coverage Report for Build 4885735774

  • 30 of 37 (81.08%) changed or added relevant lines in 8 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.05%) to 81.871%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/controllers/deprovisioning/drift.go 0 1 0.0%
pkg/controllers/deprovisioning/emptymachineconsolidation.go 1 2 50.0%
pkg/controllers/deprovisioning/expiration.go 0 1 0.0%
pkg/controllers/deprovisioning/multimachineconsolidation.go 10 11 90.91%
pkg/controllers/deprovisioning/singlemachineconsolidation.go 3 4 75.0%
pkg/controllers/deprovisioning/consolidation.go 3 5 60.0%
Totals Coverage Status
Change from base Build 4885484801: 0.05%
Covered Lines: 6810
Relevant Lines: 8318

💛 - Coveralls

@ellistarn
Copy link
Contributor

Can we define a protocol for manual testing for any changes to the core deprovisioning logic? Further, can you elaborate in the description about why this change is being made?

@ellistarn
Copy link
Contributor

ellistarn commented Apr 12, 2023

Overall I'm fine with this change, but I'm nervous given the recent regressions to deprovisioning. It's not an option to stop making changes, but we need to figure out what mechanisms we can add to increase our confidence in making changes.

njtran and others added 5 commits May 3, 2023 13:14
* Revert "Revert machine migration changes (kubernetes-sigs#176) (kubernetes-sigs#241)"

This reverts commit 9973eac.

* Change owner reference to blockOwnerDeletion

* Remove string logging for machine launch

* Removing FailedInit since machine statusCondition captures it

* Updated eventing on machines
pkg/controllers/deprovisioning/types.go Outdated Show resolved Hide resolved
pkg/controllers/deprovisioning/types.go Outdated Show resolved Hide resolved
pkg/controllers/deprovisioning/types.go Outdated Show resolved Hide resolved
Copy link
Member

@jonathan-innis jonathan-innis left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@njtran njtran enabled auto-merge (squash) May 4, 2023 17:49
@njtran njtran merged commit 4e2a8df into kubernetes-sigs:main May 4, 2023
@njtran njtran deleted the deprovLog branch December 5, 2023 23:28
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprovisioning Logging "replacement" when doing "deletion"
6 participants