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

Pull region from node labels if well known label is present #59

Merged
merged 1 commit into from
Nov 5, 2021

Conversation

backjo
Copy link
Contributor

@backjo backjo commented Nov 3, 2021

Use region value from well known labels if present.

The current region detection from node provider assumes that zones always follow a similar format to us-west-2a, but this is not the case.

Our local zones, which have a zone id of us-west-2-lax1a, are currently getting parsed with 'us-west-2-lax1` as the region, which is incorrect. Switching to the cloud-provider managed field here should generally be higher fidelity.
Signed-off-by: Jonah Back jonah@jonahback.com

Signed-off-by: Jonah Back <jonah@jonahback.com>
@backjo backjo requested a review from a team as a code owner November 3, 2021 14:18
@codecov
Copy link

codecov bot commented Nov 3, 2021

Codecov Report

Merging #59 (9b3271b) into master (0ccce94) will increase coverage by 0.14%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #59      +/-   ##
==========================================
+ Coverage   59.85%   60.00%   +0.14%     
==========================================
  Files           9        9              
  Lines        1420     1425       +5     
==========================================
+ Hits          850      855       +5     
  Misses        476      476              
  Partials       94       94              
Impacted Files Coverage Δ
pkg/reaper/nodereaper/helpers.go 61.73% <100.00%> (+0.85%) ⬆️

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 0ccce94...9b3271b. Read the comment docs.

@backjo
Copy link
Contributor Author

backjo commented Nov 4, 2021

Hey @eytan-avisror - mind taking a look at this?

@eytan-avisror eytan-avisror self-requested a review November 5, 2021 00:09
Copy link
Collaborator

@eytan-avisror eytan-avisror left a comment

Choose a reason for hiding this comment

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

Thanks

@eytan-avisror eytan-avisror merged commit edf7b7b into keikoproj:master Nov 5, 2021
shailshah9 pushed a commit to shailshah9/governor that referenced this pull request Nov 8, 2021
…koproj#59)

Signed-off-by: Jonah Back <jonah@jonahback.com>
Signed-off-by: shailshah9 <shailshah9@gmail.com>
shaoxt pushed a commit to shaoxt/governor that referenced this pull request Dec 21, 2021
…koproj#59)

Signed-off-by: Jonah Back <jonah@jonahback.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.

None yet

2 participants