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

Refactor ReapableInstances to avoid ASG Validation selectively #54

Merged
merged 2 commits into from
Jul 19, 2021

Conversation

eytan-avisror
Copy link
Collaborator

Signed-off-by: Eytan Avisror eytan_avisror@intuit.com

Fixes #51

This refactor ReapableInstances into a structured object instead of a map, which allows to select if a specific instance requires ASG validation.

With this change, even if ASG Validation is on, unjoined nodes will be terminated.

Eytan Avisror added 2 commits July 16, 2021 16:01
Signed-off-by: Eytan Avisror <eytan_avisror@intuit.com>
Signed-off-by: Eytan Avisror <eytan_avisror@intuit.com>
@eytan-avisror eytan-avisror requested a review from a team as a code owner July 16, 2021 23:04
@codecov
Copy link

codecov bot commented Jul 16, 2021

Codecov Report

Merging #54 (b0a339b) into master (740c606) will increase coverage by 0.44%.
The diff coverage is 90.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #54      +/-   ##
==========================================
+ Coverage   57.81%   58.26%   +0.44%     
==========================================
  Files           7        7              
  Lines        1183     1198      +15     
==========================================
+ Hits          684      698      +14     
- Misses        416      417       +1     
  Partials       83       83              
Impacted Files Coverage Δ
pkg/reaper/nodereaper/types.go 89.47% <81.81%> (-10.53%) ⬇️
pkg/reaper/nodereaper/nodereaper.go 46.37% <93.10%> (+0.88%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 740c606...b0a339b. Read the comment docs.

Copy link

@kevdowney kevdowney left a comment

Choose a reason for hiding this comment

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

LGTM

@eytan-avisror eytan-avisror merged commit fc4eb61 into keikoproj:master Jul 19, 2021
shaoxt pushed a commit to shaoxt/governor that referenced this pull request Dec 21, 2021
* refactor

Signed-off-by: Eytan Avisror <eytan_avisror@intuit.com>

* Update nodereaper.go

Signed-off-by: Eytan Avisror <eytan_avisror@intuit.com>
Signed-off-by: shaoxt <shaoxt@gmail.com>
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.

node reaper should clean up in transition bad nodes
2 participants