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

perf: use vmname-nic for network interface names #275

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tallaxes
Copy link
Collaborator

Description

Uses "vmname-nic" when naming network interfaces, as cloud-provider-azure has some optimizations for this case. Minor other cleanup.

How was this change tested?

  • make presubmit

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

Release Note


@tallaxes tallaxes added area/networking Issues or PRs related to networking area/performance Issues or PRs related to performance labels Apr 18, 2024
@@ -410,6 +410,11 @@ func (p *Provider) launchInstance(
return resp, instanceType, nil
}

func getNetworkInterfaceName(vmName string) string {
// cloud-provider-azure has certain optimizations (can avoid extra API calls) if this pattern is followed
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we link to the parts from cloud provider azure this is referencing?

@coveralls
Copy link

Pull Request Test Coverage Report for Build 8734038138

Details

  • 18 of 20 (90.0%) changed or added relevant lines in 2 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.007%) to 97.729%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/providers/instance/armutils.go 7 8 87.5%
pkg/providers/instance/instance.go 11 12 91.67%
Files with Coverage Reduction New Missed Lines %
pkg/operator/options/options_validation.go 2 95.92%
Totals Coverage Status
Change from base Build 8734022860: -0.007%
Covered Lines: 35670
Relevant Lines: 36499

💛 - Coveralls

@tallaxes tallaxes self-assigned this Apr 18, 2024
@tallaxes tallaxes added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/networking Issues or PRs related to networking area/performance Issues or PRs related to performance size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants