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

fix: Deduplicate Subnets #344

Merged
merged 1 commit into from
Feb 4, 2022

Conversation

eytan-avisror
Copy link
Collaborator

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

Fixes #339

This ignores duplicate values if provided in subnet field to avoid blocking reconcile.

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

codecov bot commented Feb 4, 2022

Codecov Report

Merging #344 (12f5d03) into master (14ffe9c) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #344      +/-   ##
==========================================
+ Coverage   51.09%   51.15%   +0.05%     
==========================================
  Files          33       33              
  Lines        4505     4510       +5     
==========================================
+ Hits         2302     2307       +5     
  Misses       2062     2062              
  Partials      141      141              
Impacted Files Coverage Δ
api/v1alpha1/zz_generated.deepcopy.go 0.00% <ø> (ø)
controllers/provisioners/eks/helpers.go 91.45% <100.00%> (+0.05%) ⬆️

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 14ffe9c...12f5d03. Read the comment docs.

Copy link
Member

@shailshah9 shailshah9 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@backjo backjo left a comment

Choose a reason for hiding this comment

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

LGTM. I wonder if it's worth emitting a warning-type event on the IG to give folks a heads up in case they did not intend to supply duplicate values.

@eytan-avisror
Copy link
Collaborator Author

LGTM. I wonder if it's worth emitting a warning-type event on the IG to give folks a heads up in case they did not intend to supply duplicate values.

Yep, our logger right now only has Info() and Error(), but allows for logging levels, we should do some work on logging.
For now emitting an info message.

@eytan-avisror eytan-avisror merged commit c321140 into keikoproj:master Feb 4, 2022
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.

Subnets field should deduplicate if duplicate values are provided
3 participants