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

Revert "chore: don't panic for a nil instance type (#7144)" #7222

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

njtran
Copy link
Contributor

@njtran njtran commented Oct 15, 2024

This reverts commit e07b37d.

Fixes #N/A

Description
Reverting this since we should enforce an invariant that the cloud provider returns a real instance type. This prevents the CP from implementing a fix to return a nil instance type if an instance type shouldn't be used. We should opt to just mark all of the offerings as unavailable. But still allow it to be discovered. This allows us to not provision nodes that have this instance type, but still allow us to drift it if it no longer appears in describeinstancetypes

How was this change tested?

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 15, 2024 17:39
Copy link

netlify bot commented Oct 15, 2024

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit 50ded2e
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/670ea8c93390600007150d03

@coveralls
Copy link

Pull Request Test Coverage Report for Build 11351431968

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.073%

Totals Coverage Status
Change from base Build 11334552427: 0.02%
Covered Lines: 5595
Relevant Lines: 6735

💛 - Coveralls

Copy link
Contributor

@jonathan-innis jonathan-innis 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 400023a into aws:main Oct 15, 2024
17 checks passed
@njtran njtran deleted the revert branch October 15, 2024 18:39
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