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: Update instance provider delete to check if the instance is terminated #7684

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

jigisha620
Copy link
Contributor

Fixes #N/A

Description
We saw an issue where eventual consistency with EC2 can cause the underlying instance to be still around even when cloudProvider.Delete() call is made once against it. To tackle this in this PR, we have updated instance provider delete to check if the instance is terminated.

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.

@jigisha620 jigisha620 requested a review from a team as a code owner January 31, 2025 23:54
Copy link

netlify bot commented Jan 31, 2025

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit 0d8aad3
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/67a560829570bb0008d21ab7

@jigisha620 jigisha620 force-pushed the feat-instance-termination branch from 9771e01 to fc53bd0 Compare February 3, 2025 19:23
@coveralls
Copy link

coveralls commented Feb 3, 2025

Pull Request Test Coverage Report for Build 13191238341

Details

  • 6 of 9 (66.67%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.03%) to 64.926%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/providers/instance/instance.go 6 9 66.67%
Files with Coverage Reduction New Missed Lines %
pkg/fake/utils.go 2 94.81%
Totals Coverage Status
Change from base Build 13186163619: 0.03%
Covered Lines: 5805
Relevant Lines: 8941

💛 - Coveralls

@jigisha620 jigisha620 force-pushed the feat-instance-termination branch from fc53bd0 to 6a8dc89 Compare February 6, 2025 21:26
jonathan-innis
jonathan-innis previously approved these changes Feb 6, 2025
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 🚀

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 🚀

@jigisha620 jigisha620 enabled auto-merge (rebase) February 7, 2025 01:27
@jigisha620 jigisha620 merged commit a5f6c8d into aws:main Feb 7, 2025
18 checks passed
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