-
Notifications
You must be signed in to change notification settings - Fork 813
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
Update DM allocator to use all available names #1626
Update DM allocator to use all available names #1626
Conversation
/retest |
Can you please add in your PR description explaining what is the bug/problem? |
/lgtm |
// It does this by using a list of legal EBS device names from device_names.go | ||
func (d *nameAllocator) GetNext(existingNames ExistingNames) (string, error) { | ||
for _, name := range deviceNames { | ||
if _, found := existingNames[name]; !found { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this PR doesn't change it, but why does ExistingNames
need to be a map? We care about only the keys, not the values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ExistingNames
is a map because that is how it is stored and passed in manager.go
.
4c27380
to
86642a0
Compare
/lgtm |
Signed-off-by: Connor Catlett <[email protected]>
86642a0
to
e8de6e1
Compare
/lgtm |
/retest |
@ConnorJC3: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ConnorJC3 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 |
Is this a bug fix or adding new feature?
Bug fix
What is this PR about? / Why do we need it?
Changes the device name allocator to use a list of all legal EBS device names.
Supersedes #1622
What testing is done?
Updated unit tests, manually tested, CI