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: Correct the AMI selector label requirements for NVIDIA and Neuron variants #6976

Merged
merged 3 commits into from
Sep 23, 2024

Conversation

bryantbiggs
Copy link
Member

@bryantbiggs bryantbiggs commented Sep 10, 2024

Fixes #N/A

Description

  • Correct the AMI selector label requirements for NVIDIA and Neuron variants
    • Instances backed with NVIDIA GPUs should have the label karpenter.sh/instance-gpu-count
    • Instances backed with Neuron devices should have the label karpenter.sh/instance-accelerator-count

How was this change tested?

  • make test

Does this change impact docs?

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

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@bryantbiggs bryantbiggs requested a review from a team as a code owner September 10, 2024 21:36
Copy link

netlify bot commented Sep 10, 2024

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit 00d59a0
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/66ecab7ae49bb90008c74406

@coveralls
Copy link

coveralls commented Sep 10, 2024

Pull Request Test Coverage Report for Build 10950107138

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 83.01%

Totals Coverage Status
Change from base Build 10910984774: 0.02%
Covered Lines: 5521
Relevant Lines: 6651

💛 - Coveralls

jmdeal
jmdeal previously approved these changes Sep 10, 2024
Copy link
Contributor

@jmdeal jmdeal left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

Looks like this slipped through because our currently supported AMIs don't differentiate between Nvidia and Neuron, so this swap doesn't change the end result. I'd be happy to merge and take a test for that case as a follow-up (separate Nvidia and Neuron AMIs, same AMI family), but also happy to take one here if you wanted to add one.

@bryantbiggs
Copy link
Member Author

I'm dreadfully awful with go 😅 - give me 24 hours and let me see if I can add in tests for this

@bryantbiggs
Copy link
Member Author

bryantbiggs commented Sep 11, 2024

@jmdeal I tried a naive approach to check that the scheduling.Requirements included the appropriate label, but wasn't able to make it work. I'm afraid this one is outside of my wheelhouse 😅

@jmdeal
Copy link
Contributor

jmdeal commented Sep 11, 2024

No problem, I'll go ahead and merge a test into this PR later today and we can get this merged.

@jmdeal jmdeal force-pushed the fix/accelerated-ami-selector branch 2 times, most recently from 8eff7eb to 6879239 Compare September 12, 2024 01:32
@jmdeal
Copy link
Contributor

jmdeal commented Sep 19, 2024

Sorry for the delay, made a couple additional changes and this should be good to go from my perspective. Since I've touched the PR though I shouldn't be the one to approve, I'm going to get review from someone else on the team. We should be able to merge this shortly

@jmdeal jmdeal enabled auto-merge (squash) September 23, 2024 16:18
@jmdeal jmdeal merged commit 79fbbac into aws:main Sep 23, 2024
18 checks passed
@bryantbiggs bryantbiggs deleted the fix/accelerated-ami-selector branch September 23, 2024 16:41
jmdeal added a commit to jmdeal/karpenter-provider-aws that referenced this pull request Sep 23, 2024
jmdeal added a commit that referenced this pull request Sep 23, 2024
jmdeal added a commit that referenced this pull request Sep 26, 2024
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.

4 participants