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: Log refresh credentials error #7540

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

edibble21
Copy link
Contributor

Fixes #N/A

Description
Only log credential refresh errors instead of returning them to
Only log credential refresh errors instead of returning them to reduce alert noise in metrics.
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.

@edibble21 edibble21 requested a review from a team as a code owner December 18, 2024 00:38
@edibble21 edibble21 requested a review from engedaam December 18, 2024 00:38
Copy link

netlify bot commented Dec 18, 2024

Deploy Preview for karpenter-docs-prod ready!

Name Link
🔨 Latest commit 703d2bf
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/67621be23de3990008fedc12
😎 Deploy Preview https://deploy-preview-7540--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 site configuration.

@coveralls
Copy link

coveralls commented Dec 18, 2024

Pull Request Test Coverage Report for Build 12384140991

Details

  • 9 of 17 (52.94%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.005%) to 65.12%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/controllers/nodeclass/status/instanceprofile.go 2 4 50.0%
pkg/errors/errors.go 7 13 53.85%
Files with Coverage Reduction New Missed Lines %
pkg/controllers/nodeclass/status/instanceprofile.go 1 73.33%
Totals Coverage Status
Change from base Build 12383377998: -0.005%
Covered Lines: 5784
Relevant Lines: 8882

💛 - Coveralls

@edibble21 edibble21 force-pushed the maskautherror branch 2 times, most recently from 55e8258 to 113e643 Compare December 18, 2024 00:48
if err == nil {
return false
}
if strings.Contains(err.Error(), "failed to refresh cached credentials") {
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the code on this? Generally I'm not sure what the guarantees are on the formatting of this messaging that I worry about relying on it.

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.

4 participants