Skip to content

chore: remove useless function and unify log format#7075

Merged
rudrakhp merged 2 commits intoenvoyproxy:mainfrom
zirain:nit
Sep 27, 2025
Merged

chore: remove useless function and unify log format#7075
rudrakhp merged 2 commits intoenvoyproxy:mainfrom
zirain:nit

Conversation

@zirain
Copy link
Copy Markdown
Member

@zirain zirain commented Sep 26, 2025

seperated from #7009

  1. remove useless function
  2. make the log format more consistent

Signed-off-by: zirain <zirain2009@gmail.com>
@zirain zirain requested a review from a team as a code owner September 26, 2025 12:40
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 26, 2025

Codecov Report

❌ Patch coverage is 26.19048% with 31 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.00%. Comparing base (4f72085) to head (dc0e243).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
internal/provider/kubernetes/controller.go 26.19% 31 Missing ⚠️

❌ Your patch status has failed because the patch coverage (26.19%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7075   +/-   ##
=======================================
  Coverage   70.99%   71.00%           
=======================================
  Files         227      227           
  Lines       40441    40441           
=======================================
+ Hits        28713    28714    +1     
+ Misses      10028    10025    -3     
- Partials     1700     1702    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread internal/provider/kubernetes/controller.go Outdated
return fmt.Errorf("failed to find envoyproxy %s/%s: %w", r.namespace, gc.Spec.ParametersRef.Name, err)
nn := types.NamespacedName{Namespace: string(*gc.Spec.ParametersRef.Namespace), Name: gc.Spec.ParametersRef.Name}
if err := r.client.Get(ctx, nn, ep); err != nil {
return fmt.Errorf("failed to find envoyproxy %s/%s for GatewayClass %s: %w", nn.Namespace, nn.Name, gc.Name, err)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

not related to this issue, but we are inconsistent with naming - gatewayClass vs GatewayClass in logging in the same file

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

updated, make them more consitent.

Signed-off-by: zirain <zirain2009@gmail.com>
@arkodg arkodg requested review from a team September 27, 2025 01:07
@rudrakhp rudrakhp merged commit 61c8d5e into envoyproxy:main Sep 27, 2025
52 of 55 checks passed
@zirain zirain deleted the nit branch September 28, 2025 01:02
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