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

chore: don't panic for a nil instance type #7144

Merged
merged 2 commits into from
Oct 2, 2024
Merged

chore: don't panic for a nil instance type #7144

merged 2 commits into from
Oct 2, 2024

Conversation

njtran
Copy link
Contributor

@njtran njtran commented Oct 2, 2024

Fixes #N/A

Description
The resolver can return a nil instance type in some cases, although this is controlled by the cloud provider, we should just not panic in this case.

How was this change tested?
locally
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.

@njtran njtran requested a review from a team as a code owner October 2, 2024 00:38
@njtran njtran requested a review from danxwang22 October 2, 2024 00:38
Copy link

netlify bot commented Oct 2, 2024

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit 44ab08a
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/66fc9b28d49d8d0008265f08

@coveralls
Copy link

coveralls commented Oct 2, 2024

Pull Request Test Coverage Report for Build 11135974922

Details

  • 3 of 5 (60.0%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.05%) to 83.303%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/providers/instancetype/instancetype.go 3 5 60.0%
Files with Coverage Reduction New Missed Lines %
pkg/fake/utils.go 2 94.56%
Totals Coverage Status
Change from base Build 11134190742: -0.05%
Covered Lines: 5573
Relevant Lines: 6690

💛 - Coveralls

@njtran njtran enabled auto-merge (squash) October 2, 2024 15:19
Copy link
Contributor

@engedaam engedaam left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@njtran njtran merged commit e07b37d into aws:main Oct 2, 2024
16 checks passed
njtran added a commit to njtran/karpenter-provider-aws that referenced this pull request Oct 15, 2024
@njtran njtran deleted the itnil branch October 16, 2024 18:51
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.

3 participants