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: version log change #7401

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

Chore: version log change #7401

wants to merge 2 commits into from

Conversation

edibble21
Copy link
Contributor

Fixes #N/A

Description
Made Version provider less noisy by changing logs
How was this change tested?
make presubmit
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 November 18, 2024 17:32
Copy link

netlify bot commented Nov 18, 2024

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit 24eb666
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/673b80085d1c8b0008842d0e

@coveralls
Copy link

coveralls commented Nov 18, 2024

Pull Request Test Coverage Report for Build 11898232051

Details

  • 3 of 4 (75.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.003%) to 82.607%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/providers/version/version.go 3 4 75.0%
Totals Coverage Status
Change from base Build 11873033812: 0.003%
Covered Lines: 5685
Relevant Lines: 6882

💛 - Coveralls

engedaam
engedaam previously approved these changes Nov 18, 2024
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 🚀

}
} else if lo.FromPtr(output.Cluster.Version) != "" {
version = *output.Cluster.Version
log.FromContext(ctx).Info("retrieved Kubernetes version from EKS DescribeCluster", "version", version)
versionSource = "EKS DescribeCluster"
} else {
return "", fmt.Errorf("unable to retrieve Kubernetes version from EKS DescribeCluster")
}
p.cache.SetDefault(kubernetesVersionCacheKey, version)
if p.cm.HasChanged("kubernetes-version", version) {
Copy link
Contributor

Choose a reason for hiding this comment

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

If our version source changes, should we also add a log here?

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