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: ami family conversion #6525

Merged
merged 2 commits into from
Jul 16, 2024
Merged

fix: ami family conversion #6525

merged 2 commits into from
Jul 16, 2024

Conversation

jmdeal
Copy link
Contributor

@jmdeal jmdeal commented Jul 16, 2024

Fixes the following issues with AMI conversion:

  • Fail closed when the AMI family we're convering from is Ubuntu
  • Don't create an alias when the AMI family is non-custom but selector terms are specified

Fixes #N/A

Description
This PR fixes two issues with the conversion webhooks for AMI family and selector terms:

  • Fail closed when the AMI family is Ubuntu
  • Don't create an alias when the AMI family is non-custom but AMISelectorTerms are defined

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.

@jmdeal jmdeal requested a review from a team as a code owner July 16, 2024 20:37
@jmdeal jmdeal requested a review from bwagner5 July 16, 2024 20:37
Copy link

netlify bot commented Jul 16, 2024

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit 323fc2b
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/6696dd1f456fee00089a374e

njtran
njtran previously approved these changes Jul 16, 2024
Copy link
Contributor

@njtran njtran left a comment

Choose a reason for hiding this comment

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

LGTM

pkg/apis/v1/ec2nodeclass_conversion.go Show resolved Hide resolved
Fixes the following issues with AMI conversion:
- Fail closed when the AMI family we're convering from is Ubuntu
- Don't create an alias when the AMI family is non-custom but selector
  terms are specified
njtran
njtran previously approved these changes Jul 16, 2024
@jmdeal jmdeal enabled auto-merge (squash) July 16, 2024 20:45
@jmdeal jmdeal disabled auto-merge July 16, 2024 20:46
@coveralls
Copy link

coveralls commented Jul 16, 2024

Pull Request Test Coverage Report for Build 9963924851

Details

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

Totals Coverage Status
Change from base Build 9961309650: 0.02%
Covered Lines: 5940
Relevant Lines: 7509

💛 - Coveralls

Copy link
Contributor

@njtran njtran left a comment

Choose a reason for hiding this comment

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

LGTM

@jmdeal jmdeal merged commit bcf9b09 into aws:main Jul 16, 2024
18 checks passed
@jmdeal jmdeal deleted the fix/amifamily-conversion branch August 14, 2024 22:41
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

3 participants