Skip to content

fix: spurious logging when discovering capacity#8143

Merged
jonathan-innis merged 1 commit intoaws:mainfrom
jmdeal:fix/only-log-when-cap-updated
May 29, 2025
Merged

fix: spurious logging when discovering capacity#8143
jonathan-innis merged 1 commit intoaws:mainfrom
jmdeal:fix/only-log-when-cap-updated

Conversation

@jmdeal
Copy link
Copy Markdown
Contributor

@jmdeal jmdeal commented May 29, 2025

Fixes #N/A

Description
Karpenter would previously log that it discovered the capacity for an instance type when the discovered capacity matched the cached capacity, resulting in spurious logs when there are multiple instances of the same type in a cluster. This change ensures we only log the discovery when the capacity is reduced while retaining the same caching behavior.

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 May 29, 2025 00:09
@jmdeal jmdeal requested a review from jonathan-innis May 29, 2025 00:09
@netlify
Copy link
Copy Markdown

netlify bot commented May 29, 2025

Deploy Preview for karpenter-docs-prod ready!

Name Link
🔨 Latest commit eb629dc
🔍 Latest deploy log https://app.netlify.com/projects/karpenter-docs-prod/deploys/6837a59e57fbe90008c9eb09
😎 Deploy Preview https://deploy-preview-8143--karpenter-docs-prod.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 15313166689

Details

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

Files with Coverage Reduction New Missed Lines %
pkg/providers/instancetype/instancetype.go 2 81.86%
Totals Coverage Status
Change from base Build 15310791542: 0.006%
Covered Lines: 6963
Relevant Lines: 10414

💛 - Coveralls

Copy link
Copy Markdown
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 🚀

@jonathan-innis jonathan-innis merged commit 79eeadc into aws:main May 29, 2025
17 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